public function TraceableEventDispatcher::addSubscriber in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php \Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::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.:
Overrides EventDispatcherInterface::addSubscriber
File
- vendor/
symfony/ event-dispatcher/ Debug/ TraceableEventDispatcher.php, line 63
Class
- TraceableEventDispatcher
- Collects some data about event listeners.
Namespace
Symfony\Component\EventDispatcher\DebugCode
public function addSubscriber(EventSubscriberInterface $subscriber) {
$this->dispatcher
->addSubscriber($subscriber);
}