From d96dff1144f02b1397ddba361bda9be8f29ab1f3 Mon Sep 17 00:00:00 2001 From: Asnxthaony Date: Tue, 30 May 2023 15:09:39 +0800 Subject: [PATCH] revert auto load Console commands --- app/Console/Kernel.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index b79d71eb..257f7519 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -6,11 +6,13 @@ use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { - /** - * Register the commands for the application. - */ - protected function commands(): void - { - $this->load(__DIR__.'/Commands'); - } + protected $commands = [ + \Laravel\Passport\Console\KeysCommand::class, + Commands\BsInstallCommand::class, + Commands\OptionsCacheCommand::class, + Commands\PluginDisableCommand::class, + Commands\PluginEnableCommand::class, + Commands\SaltRandomCommand::class, + Commands\UpdateCommand::class, + ]; }