PHP Class ApiPlatform\Core\Hal\Serializer\CollectionNormalizer

Author: Kevin Dunglas ([email protected])
Author: Hamza Amrouche ([email protected])
Inheritance: implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, implements Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface, use trait ApiPlatform\Core\Serializer\ContextTrait, use trait Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait
Mostra file Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
__construct ( ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, string $pageParameterName )
normalize ( $object, $format = null, array $context = [] )
supportsNormalization ( $data, $format = null )

Method Details

__construct() public method

public __construct ( ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, string $pageParameterName )
$resourceClassResolver ApiPlatform\Core\Api\ResourceClassResolverInterface
$pageParameterName string

normalize() public method

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

supportsNormalization() public method

public supportsNormalization ( $data, $format = null )