/** * 将本类从事件处理类中销毁 * @param \tfc\ap\EventDispatcher $owner * @return void */ public function detach(EventDispatcher $owner) { $owner->detach($this); $this->_enabled = false; $this->_owner = null; }