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