public function EventDispatcherInterface::addSubscriber in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/event-dispatcher/EventDispatcherInterface.php \Symfony\Component\EventDispatcher\EventDispatcherInterface::addSubscriber()
Adds an event subscriber.
The subscriber is asked for all the events he is interested in and added as a listener for these events.
Parameters
EventSubscriberInterface $subscriber The subscriber.:
4 methods override EventDispatcherInterface::addSubscriber()
- ContainerAwareEventDispatcher::addSubscriber in core/
lib/ Drupal/ Component/ EventDispatcher/ ContainerAwareEventDispatcher.php - Adds an event subscriber.
- EventDispatcher::addSubscriber in vendor/
symfony/ event-dispatcher/ EventDispatcher.php - Adds an event subscriber.
- ImmutableEventDispatcher::addSubscriber in vendor/
symfony/ event-dispatcher/ ImmutableEventDispatcher.php - Adds an event subscriber.
- TraceableEventDispatcher::addSubscriber in vendor/
symfony/ event-dispatcher/ Debug/ TraceableEventDispatcher.php - Adds an event subscriber.
File
- vendor/
symfony/ event-dispatcher/ EventDispatcherInterface.php, line 54
Class
- 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.
Namespace
Symfony\Component\EventDispatcherCode
public function addSubscriber(EventSubscriberInterface $subscriber);