[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

ContainerAwareEventDispatcher:: (9 methods):
  __construct()
  addListenerService()
  removeListener()
  hasListeners()
  getListeners()
  getListenerPriority()
  addSubscriberService()
  getContainer()
  lazyLoad()


Class: ContainerAwareEventDispatcher  - X-Ref

Lazily loads listeners and subscribers from the dependency injection
container.

__construct(ContainerInterface $container)   X-Ref
The services registered as listeners.


addListenerService($eventName, $callback, $priority = 0)   X-Ref
Adds a service as event listener.

param: string $eventName Event for which the listener is added
param: array  $callback  The service ID of the listener service & the method
param: int    $priority  The higher this value, the earlier an event listener

removeListener($eventName, $listener)   X-Ref
No description

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


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


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


addSubscriberService($serviceId, $class)   X-Ref
Adds a service as event subscriber.

param: string $serviceId The service ID of the subscriber service
param: string $class     The service's class name (which must implement EventSubscriberInterface)

getContainer()   X-Ref
No description

lazyLoad($eventName)   X-Ref
Lazily loads listeners for this event from the dependency injection
container.

param: string $eventName The name of the event to dispatch. The name of



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