mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 04:36:12 +01:00
3a13b2dea3
This has been deprecated in TYPO3 10.0: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.0/Deprecation-87550-UseControllerClassesWhenRegisteringPluginsmodules.html Fixes #383
21 lines
558 B
PHP
21 lines
558 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, matching the PHP namespaces (but without the vendor)
|
|
'Tea',
|
|
// arbitrary, but unique plugin name (not visible in the BE)
|
|
'Tea',
|
|
// all actions
|
|
[
|
|
'Tea' => 'index, show',
|
|
],
|
|
// non-cacheable actions
|
|
[
|
|
'Tea' => '',
|
|
]
|
|
);
|
|
})();
|