Interface EventDispatcherInterface
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.
Direct known implementers
Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcherIndirect known implementers
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher
Namespace: Symfony\Component\EventDispatcher
Author: Bernhard Schussek <bschussek@gmail.com>
Api
Located at event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcherInterface.php
Author: Bernhard Schussek <bschussek@gmail.com>
Api
Located at event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcherInterface.php
public
|
#
dispatch( string $eventName,
Dispatches an event to all registered listeners. |
public
|
#
addListener( string $eventName, callable $listener, integer $priority = 0 )
Adds an event listener that listens on the specified events. |
public
|
#
addSubscriber(
Adds an event subscriber. |
public
|
#
removeListener( string|array $eventName, callable $listener )
Removes an event listener from the specified events. |
public
|
#
removeSubscriber(
Removes an event subscriber. |
public
array
|
|
public
Boolean
|