/** * Detach event from EventManager. * * @return void */ public function detach() { foreach ($this->eventNames as $callable) { $this->dispatcher->removeListener($callable['name'], array($this, $callable['method'])); } }
/** * remove an event listener from the application * @access public * @param string eventType event type * @param string eventlistener ID * @return boolean */ public function removeListener($eventType, $id) { return EventManager::removeListener($eventType, $id); }