芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/vendor/league/event/src/OneTimeListener.php
listener = $listener; } /** * Get the wrapped listener. * * @return ListenerInterface */ public function getWrappedListener() { return $this->listener; } /** * @inheritdoc */ public function handle(EventInterface $event) { $name = $event->getName(); $emitter = $event->getEmitter(); $emitter->removeListener($name, $this->listener); return call_user_func_array([$this->listener, 'handle'], func_get_args()); } /** * @inheritdoc */ public function isListener($listener) { if ($listener instanceof OneTimeListener) { $listener = $listener->getWrappedListener(); } return $this->listener->isListener($listener); } }