Reference
C
Class

ApiPlatform\Symfony\EventListener\ReadListener

Retrieves data from the applicable data provider and sets it as a request parameter called data.

class ApiPlatform\Symfony\EventListener\ReadListener
{
    public __construct(ApiPlatform\State\ProviderInterface $provider, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
    public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
    public clone($data)
}
class ApiPlatform\Symfony\EventListener\ReadListener
{
    public __construct(ApiPlatform\State\ProviderInterface $provider, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
    public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
    public clone($data)
}

Methods

__construct

public __construct(ApiPlatform\State\ProviderInterface $provider, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
public __construct(ApiPlatform\State\ProviderInterface $provider, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)

Parameters

providerApiPlatform\State\ProviderInterface
resourceMetadataCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
serializerContextBuilderApiPlatform\Serializer\SerializerContextBuilderInterface
uriVariablesConverterApiPlatform\Api\UriVariablesConverterInterface

onKernelRequest

Calls the data provider and sets the data attribute.

public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\RequestEvent

Returns

null

clone

public clone($data)
public clone($data)

Parameters

data

Returns

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop