public function TraceableEventDispatcher::__construct

Constructor.

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:

Stopwatch $stopwatch A Stopwatch instance:

LoggerInterface $logger A LoggerInterface instance:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php, line 50

Class

TraceableEventDispatcher
Collects some data about event listeners.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function __construct(EventDispatcherInterface $dispatcher, Stopwatch $stopwatch, LoggerInterface $logger = null) {
  $this->dispatcher = $dispatcher;
  $this->stopwatch = $stopwatch;
  $this->logger = $logger;
  $this->called = array();
  $this->wrappedListeners = array();
  $this->firstCalledEvent = array();
}