30 lines
538 B
PHP
30 lines
538 B
PHP
<?php namespace App\Console;
|
|
|
|
use Exception;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel {
|
|
|
|
/**
|
|
* 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)
|
|
{
|
|
$output->writeln((string) $e);
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
}
|