[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/symfony/event-dispatcher/ -> EventDispatcherInterface.php (summary)

(no description)

File Size: 93 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

EventDispatcherInterface:: (8 methods):

Interface: EventDispatcherInterface  - X-Ref

The EventDispatcherInterface is the central point of Symfony's event listener system.
Listeners are registered on the manager and events are dispatched through the

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|null $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 it 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|null $eventName The name of the event
return: array The event listeners for the specified event, or all event listeners by event name

getListenerPriority($eventName, $listener)   X-Ref
Gets the listener priority for a specific event.

Returns null if the event or the listener does not exist.

param: string   $eventName The name of the event
param: callable $listener  The listener
return: int|null The event listener priority

hasListeners($eventName = null)   X-Ref
Checks whether an event has any registered listeners.

param: string|null $eventName The name of the event
return: bool true if the specified event has any listeners, false otherwise

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1