mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 20:06:14 +01:00
tea/ext_localconf.php
Oliver Klee be40b3719e
[BUGFIX] Use full controller class name for plugin registration (#457)
This get the FE output of the plugin get to work in TYPO3 10LTS
and 11LTS.

Fixes #441
2022-06-15 16:15:04 +02:00

21 lines
634 B
PHP

<?php
defined('TYPO3_MODE') or die('Access denied.');
(static function (): void {
// This makes the plugin available for front-end rendering.
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
// extension name, matching the PHP namespaces (but without the vendor)
'Tea',
// arbitrary, but unique plugin name (not visible in the BE)
'Tea',
// all actions
[
\TTN\Tea\Controller\TeaController::class => 'index, show',
],
// non-cacheable actions
[
\TTN\Tea\Controller\TeaController::class => '',
]
);
})();