update to build 420

This commit is contained in:
crazywhalecc
2021-09-11 11:59:02 +08:00
parent 07391810ff
commit 907a9cea25
11 changed files with 102 additions and 21 deletions

View File

@@ -72,11 +72,13 @@ class EventDispatcher
}
public function setRuleFunction(callable $rule = null): EventDispatcher {
if ($this->log) Console::verbose("[事件分发{$this->eid}] 设置事件rule: " . $this->class);
$this->rule = $rule;
return $this;
}
public function setReturnFunction(callable $return_func): EventDispatcher {
if ($this->log) Console::verbose("[事件分发{$this->eid}] 设置事件returnFunc: " . $this->class);
$this->return_func = $return_func;
return $this;
}