TraceableEventDispatcherInterface
interface TraceableEventDispatcherInterface implements EventDispatcherInterface
Methods
Adds an event listener that listens on the specified events.
Removes an event listener from the specified events.
Gets the listeners of a specific event or all listeners.
Checks whether an event has any registered listeners.
Gets the called listeners.
Gets the not called listeners.
Details
in EventDispatcherInterface at line line 38
Event
dispatch(string $eventName, Event $event = null)
Dispatches an event to all registered listeners.
in EventDispatcherInterface at line line 50
addListener(string $eventName, callable $listener, int $priority)
Adds an event listener that listens on the specified events.
in EventDispatcherInterface at line line 62
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.
in EventDispatcherInterface at line line 70
removeListener(string $eventName, callable $listener)
Removes an event listener from the specified events.
in EventDispatcherInterface at line line 77
removeSubscriber(EventSubscriberInterface $subscriber)
Removes an event subscriber.
in EventDispatcherInterface at line line 86
array
getListeners(string $eventName = null)
Gets the listeners of a specific event or all listeners.
in EventDispatcherInterface at line line 95
bool
hasListeners(string $eventName = null)
Checks whether an event has any registered listeners.
at line line 26
array
getCalledListeners()
Gets the called listeners.
at line line 33
array
getNotCalledListeners()
Gets the not called listeners.