Open Monograph Press
3.3.0
|
Public Member Functions | |
addListener ($eventName, $listener, $priority=0) | |
addListener ($eventName, $listener, $priority=0) | |
addSubscriber (EventSubscriberInterface $subscriber) | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, Event $event=null) | |
dispatch ($eventName, Event $event=null) | |
getListeners ($eventName=null) | |
getListeners ($eventName=null) | |
hasListeners ($eventName=null) | |
hasListeners ($eventName=null) | |
removeListener ($eventName, $listener) | |
removeListener ($eventName, $listener) | |
removeSubscriber (EventSubscriberInterface $subscriber) | |
removeSubscriber (EventSubscriberInterface $subscriber) | |
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.
Definition at line 21 of file lib/vendor/symfony/event-dispatcher/EventDispatcherInterface.php.
Symfony\Component\EventDispatcher\EventDispatcherInterface::addListener | ( | $eventName, | |
$listener, | |||
$priority = 0 |
|||
) |
Adds an event listener that listens on the specified events.
string | $eventName | The event to listen on |
callable | $listener | The listener |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0) |
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::addListener | ( | $eventName, | |
$listener, | |||
$priority = 0 |
|||
) |
Adds an event listener that listens on the specified events.
string | $eventName | The event to listen on |
callable | $listener | The listener |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0) |
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::addSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
Adds an event subscriber.
The subscriber is asked for all the events he is interested in and added as a listener for these events.
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::addSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
Adds an event subscriber.
The subscriber is asked for all the events he is interested in and added as a listener for these events.
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch | ( | $eventName, | |
Event | $event = null |
||
) |
Dispatches an event to all registered listeners.
string | $eventName | The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. |
Event | $event | The event to pass to the event handlers/listeners If not supplied, an empty Event instance is created |
Implemented in Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch | ( | $eventName, | |
Event | $event = null |
||
) |
Dispatches an event to all registered listeners.
string | $eventName | The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. |
Event | $event | The event to pass to the event handlers/listeners If not supplied, an empty Event instance is created |
Implemented in Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::getListeners | ( | $eventName = null | ) |
Gets the listeners of a specific event or all listeners sorted by descending priority.
string | $eventName | The name of the event |
Implemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, and Symfony\Component\EventDispatcher\EventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::getListeners | ( | $eventName = null | ) |
Gets the listeners of a specific event or all listeners sorted by descending priority.
string | $eventName | The name of the event |
Implemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, and Symfony\Component\EventDispatcher\EventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::hasListeners | ( | $eventName = null | ) |
Checks whether an event has any registered listeners.
string | $eventName | The name of the event |
Implemented in Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::hasListeners | ( | $eventName = null | ) |
Checks whether an event has any registered listeners.
string | $eventName | The name of the event |
Implemented in Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::removeListener | ( | $eventName, | |
$listener | |||
) |
Removes an event listener from the specified events.
string | $eventName | The event to remove a listener from |
callable | $listener | The listener to remove |
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::removeListener | ( | $eventName, | |
$listener | |||
) |
Removes an event listener from the specified events.
string | $eventName | The event to remove a listener from |
callable | $listener | The listener to remove |
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::removeSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.
Symfony\Component\EventDispatcher\EventDispatcherInterface::removeSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
Implemented in Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher, Symfony\Component\EventDispatcher\ImmutableEventDispatcher, and Symfony\Component\EventDispatcher\ImmutableEventDispatcher.