protected function getEventDispatcher() { if (!$this->dispatcher) { $this->dispatcher = new Dispatcher(); } return $this->dispatcher; }