Constructor.
EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:
Stopwatch $stopwatch A Stopwatch instance:
LoggerInterface $logger A LoggerInterface instance:
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();
}