PHP Class ApiPlatform\Core\Hydra\Serializer\CollectionFiltersNormalizer

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

Public Methods

Method Description
__construct ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $collectionNormalizer, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\Api\FilterCollection $filters )
normalize ( $object, $format = null, array $context = [] )
setNormalizer ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer )
supportsNormalization ( $data, $format = null )

Private Methods

Method Description
getSearch ( string $resourceClass, array $parts, array $filters ) : array Returns the content of the Hydra search property.

Method Details

__construct() public method

public __construct ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $collectionNormalizer, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\Api\FilterCollection $filters )
$collectionNormalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$resourceClassResolver ApiPlatform\Core\Api\ResourceClassResolverInterface
$filters ApiPlatform\Core\Api\FilterCollection

normalize() public method

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

setNormalizer() public method

public setNormalizer ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer )
$normalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface

supportsNormalization() public method

public supportsNormalization ( $data, $format = null )