PHP Класс ApiPlatform\Core\Hydra\Serializer\CollectionNormalizer

Автор: Kevin Dunglas ([email protected])
Автор: Samuel ROZE ([email protected])
Наследование: 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный метод

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 normalize ( $object, $format = null, array $context = [] )
$context array

supportsNormalization() публичный метод

public supportsNormalization ( $data, $format = null )