This commit is contained in:
2022-06-23 00:05:23 +08:00
parent 6bc22c92a5
commit 745308577d
+4 -1
View File
@@ -43,7 +43,10 @@ class EventDispatch extends Component implements EventDispatcherInterface
$lists->top(); $lists->top();
while ($lists->valid()) { while ($lists->valid()) {
try { try {
call_user_func($lists->current(), $event); $callback = $lists->current();
var_dump($callback);
call_user_func($callback, $event);
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->logger->error($exception->getMessage(), [$exception]); $this->logger->error($exception->getMessage(), [$exception]);
} }