TestAmbiguousCommandRegistering2.php 551 B

1234567891011121314151617181920212223
  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 TestAmbiguousCommandRegistering2 extends Command
  6. {
  7. protected function configure()
  8. {
  9. $this
  10. ->setName('test-ambiguous2')
  11. ->setDescription('The test-ambiguous2 command')
  12. ;
  13. }
  14. protected function execute(InputInterface $input, OutputInterface $output): int
  15. {
  16. $output->write('test-ambiguous2');
  17. return 0;
  18. }
  19. }