Guides
Tutorials
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)
}
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)
provider | ApiPlatform\State\ProviderInterface | |
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
serializerContextBuilder | ApiPlatform\Serializer\SerializerContextBuilderInterface | |
uriVariablesConverter | ApiPlatform\Api\UriVariablesConverterInterface |
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
event | Symfony\Component\HttpKernel\Event\RequestEvent |
null
public clone($data)
public clone($data)
data |