TestCommand.php 693 B

1234567891011121314151617181920212223242526272829
  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 TestCommand extends Command
  6. {
  7. protected function configure()
  8. {
  9. $this
  10. ->setName('namespace:name')
  11. ->setAliases(['name'])
  12. ->setDescription('description')
  13. ->setHelp('help')
  14. ;
  15. }
  16. protected function execute(InputInterface $input, OutputInterface $output)
  17. {
  18. $output->writeln('execute called');
  19. }
  20. protected function interact(InputInterface $input, OutputInterface $output)
  21. {
  22. $output->writeln('interact called');
  23. }
  24. }