/** * 将本类注册到事件处理类 * @param \tfc\ap\EventDispatcher $owner * @return void */ public function attach(EventDispatcher $owner) { $this->_enabled = true; $this->_owner = $owner; $owner->attach($this); }