/**
* Create a new console kernel instance.
*
* @param \Laravel\Lumen\Application $app
* @return void
*/
public function __construct(Application $app)
{
parent::__construct($app);
if (!$this->includeDefaultCommands) {
// setup facade
$this->app->withFacades();
// add artisan command 'serve' and 'schedule:run'
$this->commands = array_merge($this->commands, [\Illuminate\Console\Scheduling\ScheduleRunCommand::class, \Laravel\Lumen\Console\Commands\ServeCommand::class]);
// add artisan command 'cache:*'
$this->app->make('cache');
// add artisan command 'queue:*'
//$this->app->make('queue');
$this->app->configure('database');
}
}