Commands.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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:status' => [
  27. 'class' => Opentalent\OtAdmin\Command\GetSiteStatusCommand::class
  28. ]
  29. ];