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