Reference
C
Class

ApiPlatform\Symfony\EventListener\SerializeListener

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
}

Methods

__construct

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)

Parameters

serializerSymfony\Component\Serializer\SerializerInterface
serializerContextBuilderApiPlatform\Serializer\SerializerContextBuilderInterface
resourceMetadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface

onKernelView

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

Parameters

eventSymfony\Component\HttpKernel\Event\ViewEvent

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop