Class Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher

InheritanceSymfony\Component\EventDispatcher\Debug\TraceableEventDispatcher
ImplementsSymfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface

Collects some data about event listeners.

This event dispatcher delegates the dispatching to another one.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
postDispatch() Called after dispatching the event. Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher
preDispatch() Called before dispatching the event. Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher

Property Details

$logger protected property
protected $logger null
$stopwatch protected property
protected $stopwatch null

Method Details

__call() public method

Proxies all method calls to the original event dispatcher.

public mixed __call ( $method, $arguments )
$method string

The method name

$arguments array

The method arguments

__construct() public method

Constructor.

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

An EventDispatcherInterface instance

$stopwatch Symfony\Component\Stopwatch\Stopwatch

A Stopwatch instance

$logger Psr\Log\LoggerInterface

A LoggerInterface instance

addListener() public method

{@inheritdoc}

public void addListener ( $eventName, $listener, $priority 0 )
$eventName
$listener
$priority
addSubscriber() public method

{@inheritdoc}

public void addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )
$subscriber
dispatch() public method

{@inheritdoc}

public void dispatch ( $eventName, Symfony\Component\EventDispatcher\Event $event null )
$eventName
$event
getCalledListeners() public method

{@inheritdoc}

public void getCalledListeners ( )
getListenerPriority() public method

{@inheritdoc}

public void getListenerPriority ( $eventName, $listener )
$eventName
$listener
getListeners() public method

{@inheritdoc}

public void getListeners ( $eventName null )
$eventName
getNotCalledListeners() public method

{@inheritdoc}

public void getNotCalledListeners ( )
hasListeners() public method

{@inheritdoc}

public void hasListeners ( $eventName null )
$eventName
postDispatch() protected method

Called after dispatching the event.

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

The event name

$event Symfony\Component\EventDispatcher\Event

The event

preDispatch() protected method

Called before dispatching the event.

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

The event name

$event Symfony\Component\EventDispatcher\Event

The event

removeListener() public method

{@inheritdoc}

public void removeListener ( $eventName, $listener )
$eventName
$listener
removeSubscriber() public method

{@inheritdoc}

public void removeSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )
$subscriber