Skip to content

Commit 598f26b

Browse files
[11.x] Fixes ApplicationBuilder::withCommandRouting() usage (#50742)
* [11.x] Fixes `ApplicationBuilder::withCommandRouting()` usage. This also apply the changes from PR #50738 for `withCommandRouting()` method. Signed-off-by: Mior Muhammad Zaki <[email protected]> * Apply fixes from StyleCI * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip * wip --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: StyleCI Bot <[email protected]>
1 parent a32ba83 commit 598f26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Configuration/ApplicationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function withCommands(array $commands = [])
274274
protected function withCommandRouting(array $paths)
275275
{
276276
$this->app->afterResolving(ConsoleKernel::class, function ($kernel) use ($paths) {
277-
$kernel->setCommandRoutePaths($paths);
277+
$this->app->booted(fn () => $kernel->addCommandRoutePaths($paths));
278278
});
279279
}
280280

0 commit comments

Comments
 (0)