ContainerAwareEventManager
class ContainerAwareEventManager extends EventManager
Allows lazy loading of listener services.
Methods
__construct(ContainerInterface $container)
No description
bool
dispatchEvent(string $eventName, EventArgs $eventArgs = null)
Dispatches an event to all registered listeners.
array
getListeners(string $event = null)
Gets the listeners of a specific event or all listeners.
bool
hasListeners(string $event)
Checks whether an event has any registered listeners.
addEventListener(string|array $events, object|string $listener)
Adds an event listener that listens on the specified events.
removeEventListener(string|array $events, object|string $listener)
Removes an event listener from the specified events.