3 use Symfony\Component\Console\Command\Command;
4 use Symfony\Component\Console\Input\InputInterface;
5 use Symfony\Component\Console\Output\OutputInterface;
7 class FooCommand extends Command
12 protected function configure()
16 ->setDescription('The foo:bar command')
17 ->setAliases(array('afoobar'))
21 protected function interact(InputInterface $input, OutputInterface $output)
23 $output->writeln('interact called');
26 protected function execute(InputInterface $input, OutputInterface $output)
28 $this->input = $input;
29 $this->output = $output;
31 $output->writeln('called');