Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (ContainerInterface $container) | |
__construct (ContainerInterface $container) | |
addListenerService ($eventName, $callback, $priority=0) | |
addListenerService ($eventName, $callback, $priority=0) | |
addSubscriberService ($serviceId, $class) | |
addSubscriberService ($serviceId, $class) | |
getContainer () | |
getContainer () | |
getListenerPriority ($eventName, $listener) | |
getListenerPriority ($eventName, $listener) | |
getListeners ($eventName=null) | |
getListeners ($eventName=null) | |
hasListeners ($eventName=null) | |
hasListeners ($eventName=null) | |
removeListener ($eventName, $listener) | |
removeListener ($eventName, $listener) | |
![]() | |
addListener ($eventName, $listener, $priority=0) | |
addListener ($eventName, $listener, $priority=0) | |
addSubscriber (EventSubscriberInterface $subscriber) | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, Event $event=null) | |
dispatch ($eventName, Event $event=null) | |
removeSubscriber (EventSubscriberInterface $subscriber) | |
removeSubscriber (EventSubscriberInterface $subscriber) | |
Protected Member Functions | |
lazyLoad ($eventName) | |
lazyLoad ($eventName) | |
![]() | |
doDispatch ($listeners, $eventName, Event $event) | |
doDispatch ($listeners, $eventName, Event $event) | |
Lazily loads listeners and subscribers from the dependency injection container.
Definition at line 24 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::__construct | ( | ContainerInterface | $container | ) |
Definition at line 38 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::__construct | ( | ContainerInterface | $container | ) |
Definition at line 38 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::addListenerService | ( | $eventName, | |
$callback, | |||
$priority = 0 |
|||
) |
Adds a service as event listener.
string | $eventName | Event for which the listener is added |
array | $callback | The service ID of the listener service & the method name that has to be called |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain. Defaults to 0. |
Definition at line 55 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::addListenerService | ( | $eventName, | |
$callback, | |||
$priority = 0 |
|||
) |
Adds a service as event listener.
string | $eventName | Event for which the listener is added |
array | $callback | The service ID of the listener service & the method name that has to be called |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain. Defaults to 0. |
Definition at line 55 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::addSubscriberService | ( | $serviceId, | |
$class | |||
) |
Adds a service as event subscriber.
string | $serviceId | The service ID of the subscriber service |
string | $class | The service's class name (which must implement EventSubscriberInterface) |
Definition at line 136 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::addSubscriberService | ( | $serviceId, | |
$class | |||
) |
Adds a service as event subscriber.
string | $serviceId | The service ID of the subscriber service |
string | $class | The service's class name (which must implement EventSubscriberInterface) |
Definition at line 136 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::getContainer | ( | ) |
Definition at line 151 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::getContainer | ( | ) |
Definition at line 151 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::getListenerPriority | ( | $eventName, | |
$listener | |||
) |
{Gets the listener priority for a specific event.Returns null if the event or the listener does not exist.
string | $eventName | The name of the event |
callable | $listener | The listener |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 123 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::getListenerPriority | ( | $eventName, | |
$listener | |||
) |
{Gets the listener priority for a specific event.Returns null if the event or the listener does not exist.
string | $eventName | The name of the event |
callable | $listener | The listener |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 123 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::getListeners | ( | $eventName = null | ) |
{{Gets the listeners of a specific event or all listeners sorted by descending priority.
string | $eventName | The name of the event |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 107 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::getListeners | ( | $eventName = null | ) |
{{Gets the listeners of a specific event or all listeners sorted by descending priority.
string | $eventName | The name of the event |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 107 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::hasListeners | ( | $eventName = null | ) |
{{Checks whether an event has any registered listeners.
string | $eventName | The name of the event |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 91 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::hasListeners | ( | $eventName = null | ) |
{{Checks whether an event has any registered listeners.
string | $eventName | The name of the event |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 91 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
|
protected |
Lazily loads listeners for this event from the dependency injection container.
string | $eventName | The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. |
Definition at line 164 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\addListener().
Referenced by Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\getListenerPriority(), Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\getListeners(), and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\removeListener().
|
protected |
Lazily loads listeners for this event from the dependency injection container.
string | $eventName | The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. |
Definition at line 164 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\addListener().
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::removeListener | ( | $eventName, | |
$listener | |||
) |
{{Removes an event listener from the specified events.
string | $eventName | The event to remove a listener from |
callable | $listener | The listener to remove |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 64 of file lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::removeListener | ( | $eventName, | |
$listener | |||
) |
{{Removes an event listener from the specified events.
string | $eventName | The event to remove a listener from |
callable | $listener | The listener to remove |
Reimplemented from Symfony\Component\EventDispatcher\EventDispatcher.
Definition at line 64 of file vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php.
References Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().