| [ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 81 lines (3 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
EventDispatcherInterface:: (7 methods):
dispatch()
addListener()
addSubscriber()
removeListener()
removeSubscriber()
getListeners()
hasListeners()
Interface: EventDispatcherInterface - X-Ref
The EventDispatcherInterface is the central point of Symfony's event listener system.| dispatch($eventName, Event $event = null) X-Ref |
| Dispatches an event to all registered listeners. param: string $eventName The name of the event to dispatch. The name of param: Event $event The event to pass to the event handlers/listeners return: Event |
| addListener($eventName, $listener, $priority = 0) X-Ref |
| Adds an event listener that listens on the specified events. param: string $eventName The event to listen on param: callable $listener The listener param: int $priority The higher this value, the earlier an event |
| addSubscriber(EventSubscriberInterface $subscriber) X-Ref |
| Adds an event subscriber. The subscriber is asked for all the events he is interested in and added as a listener for these events. |
| removeListener($eventName, $listener) X-Ref |
| Removes an event listener from the specified events. param: string $eventName The event to remove a listener from param: callable $listener The listener to remove |
| removeSubscriber(EventSubscriberInterface $subscriber) X-Ref |
| No description |
| getListeners($eventName = null) X-Ref |
| Gets the listeners of a specific event or all listeners sorted by descending priority. param: string $eventName The name of the event return: array The event listeners for the specified event, or all event listeners by event name |
| hasListeners($eventName = null) X-Ref |
| Checks whether an event has any registered listeners. param: string $eventName The name of the event return: bool true if the specified event has any listeners, false otherwise |
| Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |