Commands.php 732 B

1234567891011121314151617181920
  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\CreateOrganizationCommand::class
  13. ],
  14. 'ot:users:enfeedit' => [
  15. 'class' => Opentalent\OtAdmin\Command\EnableFeEditingCommand::class
  16. ]
  17. ];