Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Jun 14, 2024
1 parent c78db3b commit 49d4c8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ protected function dispatch($event, array $params = [])
$call = $event;
} elseif (str_contains($event, '::')) {
$call = $event;
} elseif (function_exists($event)) {
$call = $event;
} else {
$obj = $this->app->make($event);
$call = [$obj, 'handle'];
Expand Down

0 comments on commit 49d4c8d

Please sign in to comment.