mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 21:36:13 +01:00
31 lines
900 B
PHP
31 lines
900 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)
|
|
'TeaIndex',
|
|
// all actions
|
|
[
|
|
\TTN\Tea\Controller\TeaController::class => 'index',
|
|
],
|
|
// non-cacheable actions
|
|
[
|
|
\TTN\Tea\Controller\TeaController::class => '',
|
|
]
|
|
);
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
'Tea',
|
|
'TeaShow',
|
|
[
|
|
\TTN\Tea\Controller\TeaController::class => 'show',
|
|
],
|
|
[
|
|
\TTN\Tea\Controller\TeaController::class => '',
|
|
]
|
|
);
|
|
})();
|