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])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 0 사용 예제들

공개 메소드들

메소드 설명
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