Commands.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Commands to be executed by typo3, where the key of the array
  4. * is the name of the command (to be called as the first argument after typo3).
  5. * Required parameter is the "class" of the command which needs to be a subclass
  6. * of Symfony/Console/Command.
  7. */
  8. // /!\ WARNING: this way of register commands will be deprecated with Typo3 v10
  9. // https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/CommandControllers/Index.html#creating-a-new-command-in-extensions
  10. return [
  11. 'ot:site:create' => [
  12. 'class' => Opentalent\OtAdmin\Command\CreateSiteCommand::class
  13. ],
  14. 'ot:site:delete' => [
  15. 'class' => Opentalent\OtAdmin\Command\DeleteSiteCommand::class
  16. ],
  17. 'ot:site:undelete' => [
  18. 'class' => Opentalent\OtAdmin\Command\UndeleteSiteCommand::class
  19. ],
  20. 'ot:site:update' => [
  21. 'class' => Opentalent\OtAdmin\Command\UpdateSiteCommand::class
  22. ],
  23. 'ot:site:clear-cache' => [
  24. 'class' => Opentalent\OtAdmin\Command\ClearSiteCacheCommand::class
  25. ],
  26. 'ot:site:setdomain' => [
  27. 'class' => Opentalent\OtAdmin\Command\SetSiteDomainCommand::class
  28. ],
  29. 'ot:site:status' => [
  30. 'class' => Opentalent\OtAdmin\Command\GetSiteStatusCommand::class
  31. ],
  32. 'ot:redirection:add' => [
  33. 'class' => Opentalent\OtAdmin\Command\AddRedirectionCommand::class
  34. ],
  35. 'ot:redirection:remove' => [
  36. 'class' => Opentalent\OtAdmin\Command\RemoveRedirectionCommand::class
  37. ],
  38. 'ot:scan' => [
  39. 'class' => Opentalent\OtAdmin\Command\ScanCommand::class
  40. ]
  41. ];