Yaffs site version 1.1
[yaffs-website] / vendor / symfony / console / Tests / Fixtures / Foo3Command.php
1 <?php
2
3 use Symfony\Component\Console\Command\Command;
4 use Symfony\Component\Console\Input\InputInterface;
5 use Symfony\Component\Console\Output\OutputInterface;
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 }