mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-25 04:16:12 +01:00
a0955b5e0b
The TYPO3_MODE constant is deprecated with v11.0. The new constant TYPO3, which replaces the old constant, was introduced also in TYPO3 v10 with version v10.4.11: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92947-DeprecateTYPO3_MODEAndTYPO3_REQUESTTYPEConstants.html As best practice, we should also use the new constant and raise the composer constraints for TYPO3 accordingly.
21 lines
629 B
PHP
21 lines
629 B
PHP
<?php
|
|
|
|
defined('TYPO3') 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 => '',
|
|
]
|
|
);
|
|
})();
|