diff --git a/ext_localconf.php b/ext_localconf.php index 5dad551..74d7164 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -1,31 +1,34 @@ '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 => '', - ] - ); -})(); +// This makes the plugin available for front-end rendering. +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 + [ + TeaController::class => 'index', + ], + // non-cacheable actions + [ + TeaController::class => '', + ] +); +ExtensionUtility::configurePlugin( + 'Tea', + 'TeaShow', + [ + TeaController::class => 'show', + ], + [ + TeaController::class => '', + ] +);