public function getEventManager() { if (!$this->events) { $this->setEventManager(new EventManager()); } return $this->events; }