Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Mar 25, 2024
1 parent cb60a40 commit f331f7a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ public function withCommands(array $commands = [])
protected function withCommandRouting(array $paths)
{
$this->app->afterResolving(ConsoleKernel::class, function ($kernel) use ($paths) {
$this->app->booted(function () use ($kernel, $paths) {
$kernel->addCommandRoutePaths($paths);
});
$this->app->booted(fn () => $kernel->addCommandRoutePaths($paths));
});
}

Expand Down

0 comments on commit f331f7a

Please sign in to comment.