变更
This commit is contained in:
+8
-2
@@ -41,13 +41,16 @@ 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();
|
$current = $lists->current();
|
||||||
if (is_array($current)) {
|
if (is_array($current)) {
|
||||||
$this->logger->alert($current[0]::class . '::' . $current[1]);
|
$sc .= $current[0]::class . '::' . $current[1] . PHP_EOL;
|
||||||
} else if (is_string($current)) {
|
} else if (is_string($current)) {
|
||||||
$this->logger->alert($current);
|
$sc .= $current . PHP_EOL;
|
||||||
}
|
}
|
||||||
call_user_func($current, $event);
|
call_user_func($current, $event);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
@@ -58,6 +61,9 @@ class EventDispatch extends Component implements EventDispatcherInterface
|
|||||||
}
|
}
|
||||||
$lists->next();
|
$lists->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->logger->error($sc);
|
||||||
|
|
||||||
return $event;
|
return $event;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user