ext_tables.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use Opentalent\OtStats\Controller\OtStatsController;
  3. use Psr\Http\Message\ServerRequestInterface;
  4. use TYPO3\CMS\Core\Http\ApplicationType;
  5. defined('TYPO3') || die('Access denied.');
  6. // ext_tables.php contient les directives permettant de configurer le backend
  7. call_user_func(
  8. function()
  9. {
  10. /**
  11. * Registers the statistics backend module
  12. */
  13. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
  14. 'OtStats',
  15. 'web', // Make module a submodule of 'web'
  16. 'otstats', // Submodule key
  17. 'after:OtTemplatingOtcustomizer', // Position
  18. array(
  19. OtStatsController::class => 'index,askForActivationConfirmation,askForDeactivationConfirmation,enableStats,disableStats'
  20. ),
  21. array(
  22. 'access' => 'user,group',
  23. 'icon' => 'EXT:ot_stats/Resources/Public/Icons/pie-chart.png',
  24. 'labels' => 'LLL:EXT:ot_stats/Resources/Private/Language/locallang_mod.xlf',
  25. )
  26. );
  27. }
  28. );