1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php namespace App\Console;
- use Exception;
- use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
- class Kernel extends ConsoleKernel {
- /**
- * The Artisan commands provided by your application.
- *
- * @var array
- */
- protected $commands = [
- 'App\Console\Commands\InspireCommand',
- ];
- /**
- * 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;
- }
- }
- }
|