This commit is contained in:
2022-06-23 01:09:47 +08:00
parent f22d8463e3
commit 29410876e1
+1 -13
View File
@@ -41,18 +41,9 @@ class EventDispatch extends Component implements EventDispatcherInterface
return $event; return $event;
} }
$lists->top(); $lists->top();
$sc = '';
while ($lists->valid()) { while ($lists->valid()) {
try { try {
$current = $lists->current(); call_user_func($lists->current(), $event);
if (is_array($current)) {
$sc .= $current[0]::class . '::' . $current[1] . PHP_EOL;
} else if (is_string($current)) {
$sc .= $current . PHP_EOL;
}
call_user_func($current, $event);
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->logger->error($exception->getMessage(), [$exception]); $this->logger->error($exception->getMessage(), [$exception]);
} }
@@ -61,9 +52,6 @@ class EventDispatch extends Component implements EventDispatcherInterface
} }
$lists->next(); $lists->next();
} }
$this->logger->error($sc);
return $event; return $event;
} }