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

Author: Kévin Dunglas ([email protected])
显示文件 Open project: api-platform/core Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

__construct() public method

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

onKernelView() public method

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