PHP Интерфейс 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.
С версии: 2.0
Автор: Guilherme Blanco ([email protected])
Автор: Jonathan Wage ([email protected])
Автор: Roman Borschel ([email protected])
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getSubscribedEvents ( ) : array Returns an array of event names this subscriber wants to listen to.

Описание методов

getSubscribedEvents() статический публичный Метод

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
Результат array The event names to listen to