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.
Signature
public function addSubscriber(EventSubscriberInterface
$subscriber )
Parameters
$subscriber
— Symfony\Component\EventDispatcher\EventSubscriberInterface- The subscriber.