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)
21 throw new \Exception('First exception <p>this is html</p>');
22 } catch (\Exception $e) {
23 throw new \Exception('Second exception <comment>comment</comment>', 0, $e);
25 } catch (\Exception $e) {
26 throw new \Exception('Third exception <fg=blue;bg=red>comment</>', 0, $e);