FoobarCommand.php 559 B

1234567891011121314151617181920212223242526
  1. <?php
  2. use Symfony\Component\Console\Command\Command;
  3. use Symfony\Component\Console\Input\InputInterface;
  4. use Symfony\Component\Console\Output\OutputInterface;
  5. class FoobarCommand extends Command
  6. {
  7. public $input;
  8. public $output;
  9. protected function configure()
  10. {
  11. $this
  12. ->setName('foobar:foo')
  13. ->setDescription('The foobar:foo command')
  14. ;
  15. }
  16. protected function execute(InputInterface $input, OutputInterface $output)
  17. {
  18. $this->input = $input;
  19. $this->output = $output;
  20. }
  21. }