\Symfony\Component\EventDispatcher\DebugTraceableEventDispatcher

Collects some data about event listeners.

This event dispatcher delegates the dispatching to another one.

Summary

Methods
Properties
Constants
__construct()
addListener()
addSubscriber()
removeListener()
removeSubscriber()
getListeners()
hasListeners()
dispatch()
getCalledListeners()
getNotCalledListeners()
__call()
No public properties found
No constants found
preDispatch()
postDispatch()
$logger
$stopwatch
N/A
preProcess()
postProcess()
getListenerInfo()
$called
$dispatcher
$wrappedListeners
N/A

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) 

Constructor.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher

An EventDispatcherInterface instance

\Symfony\Component\Stopwatch\Stopwatch $stopwatch

A Stopwatch instance

\Psr\Log\LoggerInterface $logger

A LoggerInterface instance

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

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