Symfony\Component\EventDispatcher\EventDispatcherInterface
The EventDispatcherInterface is the central point of Symfony's event listener system.
Listeners are registered on the manager and events are dispatched through the
manager.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
interface EventDispatcherInterface
{
- // methods
- public Event dispatch()
- public void addListener()
- public void addSubscriber()
- public void removeListener()
- public void removeSubscriber()
- public array getListeners()
- public Boolean hasListeners()
Methods
public
- addListener() — Adds an event listener that listens on the specified events.
- addSubscriber() — Adds an event subscriber.
- dispatch() — 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.
- removeListener() — Removes an event listener from the specified events.
- removeSubscriber() — Removes an event subscriber.