变更
This commit is contained in:
@@ -44,6 +44,11 @@ class EventDispatch extends Component implements EventDispatcherInterface
|
|||||||
while ($lists->valid()) {
|
while ($lists->valid()) {
|
||||||
try {
|
try {
|
||||||
$current = $lists->current();
|
$current = $lists->current();
|
||||||
|
if (is_array($current)) {
|
||||||
|
var_dump($current[0]::class, $current[1]);
|
||||||
|
} else if (is_string($current)) {
|
||||||
|
var_dump($current);
|
||||||
|
}
|
||||||
call_user_func($current, $event);
|
call_user_func($current, $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