3 use Symfony\Component\Console\Command\Command;
4 use Symfony\Component\Console\Input\InputInterface;
5 use Symfony\Component\Console\Output\OutputInterface;
7 class Foo3Command extends Command
9 protected function configure()
13 ->setDescription('The foo3:bar command')
17 protected function execute(InputInterface $input, OutputInterface $output)
20 throw new \Exception("First exception");
21 } catch (\Exception $e) {
22 throw new \Exception("Second exception", 0, $e);