Symfony\Bridge\Doctrine\ContainerAwareEventManager
Allows lazy loading of listener services.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class ContainerAwareEventManager
extends EventManager
{
- // members
- private array $listeners;
- private array $initialized;
- private $container;
- // methods
- public void __construct()
- public boolean dispatchEvent()
- public array getListeners()
- public boolean hasListeners()
- public void addEventListener()
- public void removeEventListener()
- // Inherited methods from EventManager
- public boolean dispatchEvent()
- public array getListeners()
- public boolean hasListeners()
- public void addEventListener()
- public void removeEventListener()
- public void addEventSubscriber()
- public void removeEventSubscriber()
Hierarchy
Extends
Members
private
- $container
- $initialized
- $listeners
—
array
Map of registered listeners.
Methods
public
- __construct()
- addEventListener() — Adds an event listener that listens on the specified events.
- dispatchEvent() — Dispatches an event to all registered listeners.
- getListeners() — Gets the listeners of a specific event or all listeners.
- hasListeners() — Checks whether an event has any registered listeners.
- removeEventListener() — Removes an event listener from the specified events.
Inherited from Doctrine\Common\EventManager
public
- addEventListener() — Adds an event listener that listens on the specified events.
- addEventSubscriber() — Adds an EventSubscriber. The subscriber is asked for all the events he is interested in and added as a listener for these events.
- dispatchEvent() — Dispatches an event to all registered listeners.
- getListeners() — Gets the listeners of a specific event or all listeners.
- hasListeners() — Checks whether an event has any registered listeners.
- removeEventListener() — Removes an event listener from the specified events.
- removeEventSubscriber() — Removes an EventSubscriber. The subscriber is asked for all the events it is interested in and removed as a listener for these events.