2014-10-20 11:14:41 -05:00
|
|
|
<?php namespace App\Console;
|
|
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel {
|
|
|
|
|
|
2014-10-21 10:27:26 -05:00
|
|
|
/**
|
|
|
|
|
* The Artisan commands provided by your application.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $commands = [
|
|
|
|
|
'App\Console\Commands\InspireCommand',
|
|
|
|
|
];
|
|
|
|
|
|
2014-10-20 11:14:41 -05:00
|
|
|
/**
|
|
|
|
|
* Run the console application.
|
|
|
|
|
*
|
|
|
|
|
* @param \Symfony\Component\Console\Input\InputInterface $input
|
|
|
|
|
* @param \Symfony\Component\Console\Output\OutputInterface $output
|
|
|
|
|
* @return int
|
|
|
|
|
*/
|
|
|
|
|
public function handle($input, $output = null)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
return parent::handle($input, $output);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception $e)
|
|
|
|
|
{
|
2014-11-03 16:45:26 -06:00
|
|
|
$this->reportException($e);
|
|
|
|
|
|
|
|
|
|
$this->renderException($output, $e);
|
2014-10-20 11:14:41 -05:00
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|