2018-05-26 20:46:55 +02:00
|
|
|
<?php
|
2021-11-17 13:14:43 +01:00
|
|
|
|
2023-05-09 06:11:25 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2023-06-22 13:17:51 +02:00
|
|
|
use TTN\Tea\Controller\FrontEndEditorController;
|
2023-05-09 06:11:25 +02:00
|
|
|
use TTN\Tea\Controller\TeaController;
|
|
|
|
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
|
|
|
|
2022-08-28 12:22:38 +02:00
|
|
|
defined('TYPO3') or die('Access denied.');
|
2019-12-07 19:15:24 +01:00
|
|
|
|
2023-05-09 06:11:25 +02:00
|
|
|
// 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 => '',
|
|
|
|
]
|
|
|
|
);
|
2023-06-22 13:17:51 +02:00
|
|
|
|
|
|
|
// 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)
|
|
|
|
'TeaFrontEndEditor',
|
|
|
|
// all actions
|
|
|
|
[
|
2023-06-23 11:55:19 +02:00
|
|
|
FrontEndEditorController::class => 'index, edit, update, create, new, delete',
|
2023-06-22 13:17:51 +02:00
|
|
|
],
|
|
|
|
// non-cacheable actions
|
|
|
|
[
|
|
|
|
// All actions need to be non-cacheable because they either contain dynamic data,
|
|
|
|
// or because they are specific to the logged-in FE user (while FE content is cached by FE groups).
|
2023-06-23 11:55:19 +02:00
|
|
|
FrontEndEditorController::class => 'index, edit, update, create, new, delete',
|
2023-06-22 13:17:51 +02:00
|
|
|
]
|
|
|
|
);
|