Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher
Collects some data about event listeners.
This event dispatcher delegates the dispatching to another one.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class TraceableEventDispatcher
implements
EventDispatcherInterface,TraceableEventDispatcherInterface
{
- // members
- private $logger;
- private $called;
- private $stopwatch;
- private $profiler;
- private $dispatcher;
- private $wrappedListeners;
- private $firstCalledEvent;
- private $id;
- // methods
- public void __construct()
- public void setProfiler()
- public void addListener()
- public void addSubscriber()
- public void removeListener()
- public void removeSubscriber()
- public void getListeners()
- public void hasListeners()
- public void dispatch()
- public void getCalledListeners()
- public void getNotCalledListeners()
- public mixed __call()
- public void logSkippedListeners()
- public void preListenerCall()
- private array getListenerInfo()
- private void updateProfiles()
- private void saveInfoInProfile()
- private void preDispatch()
- private void postDispatch()
- private void wrapListener()
- private void unwrapListener()
Hierarchy
Implements
Members
private
- $called
- $dispatcher
- $firstCalledEvent
- $id
- $logger
- $profiler
- $stopwatch
- $wrappedListeners
Methods
private
- getListenerInfo() — Returns information about the listener
- postDispatch()
- preDispatch()
- saveInfoInProfile() — Update the profiles with the timing and events information and saves them.
- unwrapListener()
- updateProfiles() — Updates the stopwatch data in the profile hierarchy.
- wrapListener()
public
- __construct() — Constructor.
- __call() — Proxies all method calls to the original event dispatcher.
- addListener() — {@inheritDoc}
- addSubscriber() — {@inheritdoc}
- dispatch() — {@inheritdoc}
- getCalledListeners() — {@inheritDoc}
- getListeners() — {@inheritdoc}
- getNotCalledListeners() — {@inheritDoc}
- hasListeners() — {@inheritdoc}
- logSkippedListeners() — This is a private method and must not be used.
- preListenerCall() — This is a private method.
- removeListener() — {@inheritdoc}
- removeSubscriber() — {@inheritdoc}
- setProfiler() — Sets the profiler.