Guides
Tutorials
Bridges persistence and the API system.
class ApiPlatform\Symfony\EventListener\WriteListener
{
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
class ApiPlatform\Symfony\EventListener\WriteListener
{
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Api\UriVariablesConverterInterface $uriVariablesConverter)
processor | ApiPlatform\State\ProcessorInterface | |
iriConverter | ApiPlatform\Api\IriConverterInterface | |
resourceClassResolver | ApiPlatform\Api\ResourceClassResolverInterface | |
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
uriVariablesConverter | ApiPlatform\Api\UriVariablesConverterInterface |
Persists, updates or delete data return by the controller if applicable.
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