Tutorial by Examples

use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\GenericEvent; // you may store this in a dependency injection container for use as a service $dispatcher = new EventDispatcher(); // you can attach liste...
use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\Event; $dispatcher = new EventDispatcher(); // you can attach event subscribers, which allow a single object to subscribe // to many ...

Page 1 of 1