Yaffs site version 1.1
[yaffs-website] / vendor / symfony / console / Tests / Fixtures / FooCommand.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 FooCommand extends Command
8 {
9     public $input;
10     public $output;
11
12     protected function configure()
13     {
14         $this
15             ->setName('foo:bar')
16             ->setDescription('The foo:bar command')
17             ->setAliases(array('afoobar'))
18         ;
19     }
20
21     protected function interact(InputInterface $input, OutputInterface $output)
22     {
23         $output->writeln('interact called');
24     }
25
26     protected function execute(InputInterface $input, OutputInterface $output)
27     {
28         $this->input = $input;
29         $this->output = $output;
30
31         $output->writeln('called');
32     }
33 }