PHP Class ApiPlatform\Core\Bridge\Doctrine\EventListener\WriteListener

Author: Kévin Dunglas ([email protected])
Afficher le fichier Open project: api-platform/core Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry )
onKernelView ( GetResponseForControllerResultEvent $event ) : mixed Persists, updates or delete data return by the controller if applicable.

Private Methods

Méthode Description
getManager ( string $resourceClass, mixed $data ) : Doctrine\Common\Persistence\ObjectManager | null Gets the manager if applicable.

Method Details

__construct() public méthode

public __construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry )
$managerRegistry Doctrine\Common\Persistence\ManagerRegistry

onKernelView() public méthode

Persists, updates or delete data return by the controller if applicable.
public onKernelView ( GetResponseForControllerResultEvent $event ) : mixed
$event Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
Résultat mixed