变更
This commit is contained in:
+4
-1
@@ -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]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user