Properties

$logger

$logger : 

Type

$stopwatch

$stopwatch : 

Type

$called

$called : 

Type

$dispatcher

$dispatcher : 

Type

$wrappedListeners

$wrappedListeners : 

Type

Methods

__construct()

__construct(\Symfony\Component\EventDispatcher\EventDispatcherInterface  $dispatcher, \Symfony\Component\Stopwatch\Stopwatch  $stopwatch, \Psr\Log\LoggerInterface  $logger = null) 

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher
\Symfony\Component\Stopwatch\Stopwatch $stopwatch
\Psr\Log\LoggerInterface $logger

addListener()

addListener(  $eventName,   $listener,   $priority) 

{@inheritdoc}

Parameters

$eventName
$listener
$priority

removeListener()

removeListener(  $eventName,   $listener) 

{@inheritdoc}

Parameters

$eventName
$listener

getListeners()

getListeners(  $eventName = null) 

{@inheritdoc}

Parameters

$eventName

getListenerPriority()

getListenerPriority(  $eventName,   $listener) 

{@inheritdoc}

Parameters

$eventName
$listener

hasListeners()

hasListeners(  $eventName = null) 

{@inheritdoc}

Parameters

$eventName

getCalledListeners()

getCalledListeners() : array

Gets the called listeners.

Returns

array —

An array of called listeners

getNotCalledListeners()

getNotCalledListeners() : array

Gets the not called listeners.

Returns

array —

An array of not called listeners

__call()

__call(string  $method, array  $arguments) : mixed

Proxies all method calls to the original event dispatcher.

Parameters

string $method

The method name

array $arguments

The method arguments

Returns

mixed

preDispatch()

preDispatch(string  $eventName, \Symfony\Component\EventDispatcher\Event  $event) 

Called before dispatching the event.

Parameters

string $eventName

The event name

\Symfony\Component\EventDispatcher\Event $event

The event

postDispatch()

postDispatch(string  $eventName, \Symfony\Component\EventDispatcher\Event  $event) 

Called after dispatching the event.

Parameters

string $eventName

The event name

\Symfony\Component\EventDispatcher\Event $event

The event

preProcess()

preProcess(  $eventName) 

Parameters

$eventName

postProcess()

postProcess(  $eventName) 

Parameters

$eventName

getListenerInfo()

getListenerInfo(object  $listener, string  $eventName) : array

Returns information about the listener.

Parameters

object $listener

The listener

string $eventName

The event name

Returns

array —

Information about the listener

sortListenersByPriority()

sortListenersByPriority(  $a,   $b) 

Parameters

$a
$b