protected function createStatisticsCollector() { $collector = new Listener\StatisticsCollector(); $this->dispatcher->addSubscriber($collector); return $collector; }