TestAmbiguousCommandRegistering.php 582 B

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