PHP Class ApiPlatform\Core\Hydra\Serializer\CollectionNormalizer

Author: Kevin Dunglas ([email protected])
Author: Samuel ROZE ([email protected])
Inheritance: implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, implements Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface, use trait ApiPlatform\Core\Serializer\ContextTrait, use trait ApiPlatform\Core\JsonLd\Serializer\JsonLdContextTrait, use trait Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait
Datei anzeigen Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
__construct ( ApiPlatform\Core\JsonLd\ContextBuilderInterface $contextBuilder, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\Api\IriConverterInterface $iriConverter )
normalize ( $object, $format = null, array $context = [] )
supportsNormalization ( $data, $format = null )

Method Details

__construct() public method

public __construct ( ApiPlatform\Core\JsonLd\ContextBuilderInterface $contextBuilder, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\Api\IriConverterInterface $iriConverter )
$contextBuilder ApiPlatform\Core\JsonLd\ContextBuilderInterface
$resourceClassResolver ApiPlatform\Core\Api\ResourceClassResolverInterface
$iriConverter ApiPlatform\Core\Api\IriConverterInterface

normalize() public method

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

supportsNormalization() public method

public supportsNormalization ( $data, $format = null )