References WriteListener
Reference
C
Class

ApiPlatform\Symfony\EventListener\WriteListener

Bridges persistence and the API system.

Methods

__construct

Parameters

processor`ApiPlatform\State\ProcessorInterface[]`
iriConverter`ApiPlatform\Api\IriConverterInterface`
`ApiPlatform\Metadata\IriConverterInterface`
`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
resourceClassResolver`ApiPlatform\Metadata\ResourceClassResolverInterface`
`ApiPlatform\Api\ResourceClassResolverInterface`
resourceMetadataCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
uriVariablesConverter`ApiPlatform\Api\UriVariablesConverterInterface`
`ApiPlatform\Metadata\UriVariablesConverterInterface`

onKernelView

Persists, updates or delete data return by the controller if applicable.

public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\ViewEvent

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