Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | Constructor. | |
addListenerService ( string $eventName, array $callback, integer $priority ) | Adds a service as event listener | |
dispatch ( $eventName, Symfony\Component\EventDispatcher\Event $event = null ) | {@inheritDoc} |
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | A ContainerInterface instance |
public addListenerService ( string $eventName, array $callback, integer $priority ) | ||
$eventName | string | Event for which the listener is added |
$callback | array | The service ID of the listener service & the method name that has to be called |
$priority | integer | The higher this value, the earlier an event listener will be triggered in the chain. Defaults to 0. |
public dispatch ( $eventName, Symfony\Component\EventDispatcher\Event $event = null ) | ||
$event | Symfony\Component\EventDispatcher\Event |