FooSubnamespaced1Command.php 612 B

123456789101112131415161718192021222324252627
  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 FooSubnamespaced1Command extends Command
  6. {
  7. public $input;
  8. public $output;
  9. protected function configure()
  10. {
  11. $this
  12. ->setName('foo:bar:baz')
  13. ->setDescription('The foo:bar:baz command')
  14. ->setAliases(['foobarbaz'])
  15. ;
  16. }
  17. protected function execute(InputInterface $input, OutputInterface $output)
  18. {
  19. $this->input = $input;
  20. $this->output = $output;
  21. }
  22. }