PHP Interface Symfony\Component\EventDispatcher\EventSubscriberInterface

If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes {@link getSubscribedEvents} and registers the subscriber as a listener for all returned events.
Since: 2.0
Author: Guilherme Blanco ([email protected])
Author: Jonathan Wage ([email protected])
Author: Roman Borschel ([email protected])
Author: Bernhard Schussek ([email protected])
Show file Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Public Methods

Method Description
getSubscribedEvents ( ) : array Returns an array of event names this subscriber wants to listen to.

Method Details

getSubscribedEvents() static public method

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))
static public getSubscribedEvents ( ) : array
return array The event names to listen to