Skip to content

Commit a996c07

Browse files
committed
Revert "Auto-Register Commands in routes/console.php (#52867)"
This reverts commit e216708.
1 parent e5b3239 commit a996c07

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Illuminate/Foundation/Configuration/ApplicationBuilder.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,7 @@ public function withMiddleware(?callable $callback = null)
282282
*/
283283
public function withCommands(array $commands = [])
284284
{
285-
if (empty($commands) && is_file($this->app->basePath('routes/console.php'))) {
286-
$commands = [$this->app->basePath('routes/console.php')];
287-
}
288-
289-
if (empty($commands) && is_dir($this->app->path('Console/Commands'))) {
285+
if (empty($commands)) {
290286
$commands = [$this->app->path('Console/Commands')];
291287
}
292288

0 commit comments

Comments
 (0)