References ReadListener
Reference
C
Class

ApiPlatform\Symfony\EventListener\ReadListener

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

Methods

__construct

Parameters

provider`ApiPlatform\State\ProviderInterface`
resourceMetadataCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
serializerContextBuilder`ApiPlatform\Serializer\SerializerContextBuilderInterface`
uriVariablesConverter`ApiPlatform\Api\UriVariablesConverterInterface`
`ApiPlatform\Metadata\UriVariablesConverterInterface`

onKernelRequest

Calls the data provider and sets the data attribute.

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

Parameters

eventSymfony\Component\HttpKernel\Event\RequestEvent

Returns

null

clone

public clone($data)

Parameters

data

Returns

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop