1234567891011121314151617181920212223242526272829 |
- <?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;
- }
- }
- }
|