Skip to content

Commit

Permalink
Revert "Auto-Register Commands in routes/console.php (#52867)"
Browse files Browse the repository at this point in the history
This reverts commit e216708.
  • Loading branch information
crynobone committed Sep 26, 2024
1 parent e5b3239 commit a996c07
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,7 @@ public function withMiddleware(?callable $callback = null)
*/
public function withCommands(array $commands = [])
{
if (empty($commands) && is_file($this->app->basePath('routes/console.php'))) {
$commands = [$this->app->basePath('routes/console.php')];
}

if (empty($commands) && is_dir($this->app->path('Console/Commands'))) {
if (empty($commands)) {
$commands = [$this->app->path('Console/Commands')];
}

Expand Down

0 comments on commit a996c07

Please sign in to comment.