Reference
C
Class

ApiPlatform\Symfony\EventListener\WriteListener

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
}

Methods

__construct

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)

Parameters

processorApiPlatform\State\ProcessorInterface
iriConverterApiPlatform\Api\IriConverterInterface
resourceClassResolverApiPlatform\Api\ResourceClassResolverInterface
resourceMetadataCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
uriVariablesConverterApiPlatform\Api\UriVariablesConverterInterface

onKernelView

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

Parameters

eventSymfony\Component\HttpKernel\Event\ViewEvent

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop