CommandLoaderInterface.php 697B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Symfony\Component\Console\CommandLoader;
  3. use Symfony\Component\Console\Command\Command;
  4. use Symfony\Component\Console\Exception\CommandNotFoundException;
  5. /**
  6. * @author Robin Chalas <robin.chalas@gmail.com>
  7. */
  8. interface CommandLoaderInterface
  9. {
  10. /**
  11. * Loads a command.
  12. *
  13. * @param string $name
  14. *
  15. * @return Command
  16. *
  17. * @throws CommandNotFoundException
  18. */
  19. public function get($name);
  20. /**
  21. * Checks if a command exists.
  22. *
  23. * @param string $name
  24. *
  25. * @return bool
  26. */
  27. public function has($name);
  28. /**
  29. * @return string[] All registered command names
  30. */
  31. public function getNames();
  32. }