Skip to content

Commit

Permalink
register commands from kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Apr 9, 2016
1 parent f0c3d1f commit c99ba59
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Foundation/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit c99ba59

Please sign in to comment.