Symfony\Component\EventDispatcher\EventDispatcher
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: Guilherme Blanco <guilhermeblanco@hotmail.com>
Synopsis
class EventDispatcher
implements
EventDispatcherInterface
{
- // members
- private array $listeners;
- private array $sorted;
- // methods
- public void dispatch()
- public void getListeners()
- public void hasListeners()
- public void addListener()
- public void removeListener()
- public void addSubscriber()
- public void removeSubscriber()
- protected void doDispatch()
- private void sortListeners()
Hierarchy
Extended by
Implements
Members
private
- $listeners
- $sorted
Methods
private
- sortListeners() — Sorts the internal list of listeners for the given event by priority.
protected
- doDispatch() — Triggers the listeners of an event.