[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

EventDispatcher:: (10 methods):
  dispatch()
  getListeners()
  getListenerPriority()
  hasListeners()
  addListener()
  removeListener()
  addSubscriber()
  removeSubscriber()
  doDispatch()
  sortListeners()


Class: EventDispatcher  - 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
manager.

dispatch($eventName, Event $event = null)   X-Ref
{@inheritdoc}


getListeners($eventName = null)   X-Ref
{@inheritdoc}


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
{@inheritdoc}


addListener($eventName, $listener, $priority = 0)   X-Ref
{@inheritdoc}


removeListener($eventName, $listener)   X-Ref
{@inheritdoc}


addSubscriber(EventSubscriberInterface $subscriber)   X-Ref
{@inheritdoc}


removeSubscriber(EventSubscriberInterface $subscriber)   X-Ref
{@inheritdoc}


doDispatch($listeners, $eventName, Event $event)   X-Ref
Triggers the listeners of an event.

This method can be overridden to add functionality that is executed
for each listener.

param: callable[] $listeners The event listeners
param: string     $eventName The name of the event to dispatch
param: Event      $event     The event object to pass to the event handlers/listeners

sortListeners($eventName)   X-Ref
Sorts the internal list of listeners for the given event by priority.

param: string $eventName The name of the event



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1