If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes
{@link getSubscribedEvents} and registers the subscriber as a listener for all
returned events.
Returns an array of event names this subscriber wants to listen to.
Method Details
getSubscribedEvents()
staticpublicmethod
The array keys are event names and the value can be:
* The method name to call (priority defaults to 0)
* An array composed of the method name to call and the priority
For instance:
* array('eventName' => 'methodName')
* array('eventName' => array('methodName', $priority))