mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 05:56:11 +01:00
tea/ext_localconf.php
Oliver Klee 1b4d0702c9 [BUGFIX] Keep the global namespace clean in ext_localconf.php (#39)
Move the plugin registration into a function.
2019-12-07 19:15:24 +01:00

20 lines
565 B
PHP

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