Guides
Tutorials
Serializes data.
class ApiPlatform\Symfony\EventListener\SerializeListener
{
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
class ApiPlatform\Symfony\EventListener\SerializeListener
{
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory)
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory)
serializer | Symfony\Component\Serializer\SerializerInterface | |
serializerContextBuilder | ApiPlatform\Serializer\SerializerContextBuilderInterface | |
resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface |
Serializes the data to the requested format.
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
event | Symfony\Component\HttpKernel\Event\ViewEvent |
null