From c99ba5993c64efbbd6bae0f7cf525603b6493e12 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Sat, 9 Apr 2016 19:41:07 +0000 Subject: [PATCH] register commands from kernel --- src/Illuminate/Foundation/Console/Kernel.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Illuminate/Foundation/Console/Kernel.php b/src/Illuminate/Foundation/Console/Kernel.php index 9e969f08a4ad..07cbe71970ff 100644 --- a/src/Illuminate/Foundation/Console/Kernel.php +++ b/src/Illuminate/Foundation/Console/Kernel.php @@ -214,6 +214,17 @@ public function bootstrap() $this->app->loadDeferredProviders(); } + /** + * Register the given command to the console application. + * + * @param \Symfony\Component\Console\Command\Command $command + * @return void + */ + public function registerCommand($command) + { + $this->getArtisan()->add($command); + } + /** * Get the Artisan application instance. *