This commit is contained in:
2022-06-23 00:11:06 +08:00
parent 9580aebffd
commit d96aec90b7
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ class EventDispatch extends Component implements EventDispatcherInterface
$lists->top();
while ($lists->valid()) {
try {
call_user_func($lists->current(), $event);
$current = $lists->current();
call_user_func($current, $event);
} catch (\Throwable $exception) {
$this->logger->error($exception->getMessage(), [$exception]);
}