From 354f91eded580a2a3208f6fdda9d37df7fc7d2ae Mon Sep 17 00:00:00 2001 From: Timoffei Bubigo Date: Wed, 27 Jan 2021 16:09:17 +0300 Subject: [PATCH] Add install command --- app/Console/Commands/HRCInstall.php | 20 ++++++++++++++++++++ app/Console/Kernel.php | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 app/Console/Commands/HRCInstall.php diff --git a/app/Console/Commands/HRCInstall.php b/app/Console/Commands/HRCInstall.php new file mode 100644 index 0000000..28f5539 --- /dev/null +++ b/app/Console/Commands/HRCInstall.php @@ -0,0 +1,20 @@ + 'success' + ]; + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index d45bf3e..7f3c31b 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -3,6 +3,7 @@ namespace App\Console; use App\Commands\HelloWorld; +use App\Console\Commands\HRCInstall; use Illuminate\Console\Scheduling\Schedule; use Laravel\Lumen\Console\Kernel as ConsoleKernel; use App\Helpers\ClassHelper; @@ -30,6 +31,8 @@ class Kernel extends ConsoleKernel $classes[] = ClassHelper::extract($commands_path . '/' . $file); } + $classes[] = HRCInstall::class; + $commands = parent::getCommands(); return array_merge($commands, $classes); }