class EventDispatcher implements 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.
Event | dispatch(string $eventName, Event $event = null) | |
array | getListeners(string $eventName = null) | |
bool | hasListeners(string $eventName = null) | |
addListener(string $eventName, callable $listener, int $priority) | ||
removeListener(string $eventName, callable $listener) | ||
addSubscriber(EventSubscriberInterface $subscriber) | ||
removeSubscriber(EventSubscriberInterface $subscriber) |
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/EventDispatcher/EventDispatcher.html