PHP Class ApiPlatform\Core\JsonLd\Serializer\ItemNormalizer

Author: Kévin Dunglas ([email protected])
Inheritance: extends ApiPlatform\Core\Serializer\AbstractItemNormalizer, use trait ApiPlatform\Core\Serializer\ContextTrait, use trait JsonLdContextTrait
Show file Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
__construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\Api\IriConverterInterface $iriConverter, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\JsonLd\ContextBuilderInterface $contextBuilder, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = null )
denormalize ( $data, $class, $format = null, array $context = [] )
normalize ( $object, $format = null, array $context = [] )
supportsDenormalization ( $data, $type, $format = null )
supportsNormalization ( $data, $format = null )

Method Details

__construct() public method

public __construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\Api\IriConverterInterface $iriConverter, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\JsonLd\ContextBuilderInterface $contextBuilder, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = null )
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$propertyNameCollectionFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface
$propertyMetadataFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
$iriConverter ApiPlatform\Core\Api\IriConverterInterface
$resourceClassResolver ApiPlatform\Core\Api\ResourceClassResolverInterface
$contextBuilder ApiPlatform\Core\JsonLd\ContextBuilderInterface
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface
$nameConverter Symfony\Component\Serializer\NameConverter\NameConverterInterface

denormalize() public method

public denormalize ( $data, $class, $format = null, array $context = [] )
$context array

normalize() public method

public normalize ( $object, $format = null, array $context = [] )
$context array

supportsDenormalization() public method

public supportsDenormalization ( $data, $type, $format = null )

supportsNormalization() public method

public supportsNormalization ( $data, $format = null )