public function setDispatcher(EventDispatcherInterface $dispatcher) { $this->dispatcher = $dispatcher; }