$listeners
$listeners
The EventDispatcherInterface is the central point of Symfony's event listener system.
Listeners are registered on the manager and events are dispatched through the manager.
addListener(string $eventName, mixed $listener, int $priority) : mixed
Adds an event listener that listens on the specified events.
string | $eventName | |
mixed | $listener | |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0) |
callListeners(callable[] $listeners, string $eventName, object $event) : mixed
Triggers the listeners of an event.
This method can be overridden to add functionality that is executed for each listener.
callable[] | $listeners | The event listeners |
string | $eventName | The name of the event to dispatch |
object | $event | The event object to pass to the event handlers/listeners |