You are here

public function TraceableEventDispatcher::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php \Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::__construct()

Constructor.

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:

Stopwatch $stopwatch A Stopwatch instance:

LoggerInterface $logger A LoggerInterface instance:

File

vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php, line 43

Class

TraceableEventDispatcher
Collects some data about event listeners.

Namespace

Symfony\Component\EventDispatcher\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();
}