MakeControllerCommand.php 817 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Test\Michel\Console\Command;
  3. use Michel\Console\Argument\CommandArgument;
  4. use Michel\Console\Command\CommandInterface;
  5. use Michel\Console\InputInterface;
  6. use Michel\Console\Option\CommandOption;
  7. use Michel\Console\OutputInterface;
  8. class MakeControllerCommand implements CommandInterface
  9. {
  10. public function getName(): string
  11. {
  12. return 'make:controller';
  13. }
  14. public function getDescription(): string
  15. {
  16. return 'TEST : Make a new controller';
  17. }
  18. public function getOptions(): array
  19. {
  20. return [
  21. ];
  22. }
  23. public function getArguments(): array
  24. {
  25. return [
  26. ];
  27. }
  28. public function execute(InputInterface $input, OutputInterface $output): void
  29. {
  30. $output->write('Test OK : Make a new controller');
  31. }
  32. }