TYPO3  7.6
Foo3Command.php
Go to the documentation of this file.
1 <?php
2 
6 
7 class Foo3Command extends Command
8 {
9  protected function configure()
10  {
11  $this
12  ->setName('foo3:bar')
13  ->setDescription('The foo3:bar command')
14  ;
15  }
16 
17  protected function execute(InputInterface $input, OutputInterface $output)
18  {
19  try {
20  try {
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);
24  }
25  } catch (\Exception $e) {
26  throw new \Exception('Third exception <fg=blue;bg=red>comment</>', 0, $e);
27  }
28  }
29 }