| [ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 190 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ContainerAwareEventDispatcher:: (8 methods):
__construct()
addListenerService()
removeListener()
hasListeners()
getListeners()
addSubscriberService()
getContainer()
lazyLoad()
Class: ContainerAwareEventDispatcher - X-Ref
Lazily loads listeners and subscribers from the dependency injection| __construct(ContainerInterface $container) X-Ref |
| Constructor. param: ContainerInterface $container A ContainerInterface instance |
| 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} |
| 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 Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |