ContainerAwareEventManager

ContainerAwareEventManager

class ContainerAwareEventManager extends EventManager

Allows lazy loading of listener services.

Methods

__construct(ContainerInterface $container)
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) <