[BUGFIX] Upgrade extension registerPlugin

This commit is contained in:
wadichaabene 2024-11-21 17:46:57 +01:00
parent fb54d608a6
commit d9e0ae6c44
2 changed files with 27 additions and 13 deletions

View File

@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die();
ExtensionUtility::registerPlugin(
'TemplatesAide',
'Translationplugin',
''
);

View File

@ -1,34 +1,36 @@
<?php <?php
defined('TYPO3_MODE') || die('Access denied.'); defined('TYPO3_MODE') || die('Access denied.');
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use Cjel\TemplatesAide\Controller\DummyController;
use Cjel\TemplatesAide\Controller\TranslationController;
call_user_func( call_user_func(
function() function()
{ {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Cjel.TemplatesAide', 'TemplatesAide',
'Dummy', 'Dummy',
[ [
'Dummy' => 'list', DummyController::class => 'list',
'Translation' => 'translations' TranslationController::class => 'translations'
], ],
// non-cacheable actions // non-cacheable actions
[ [
'Dummy' => '', DummyController::class => '',
'Translation' => '' TranslationController::class => ''
] ]
); );
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Cjel.TemplatesAide', 'TemplatesAide',
'Translationplugin', 'Translationplugin',
[ [
'Translation' => 'translations' TranslationController::class => 'translations'
], ],
// non-cacheable actions // non-cacheable actions
[ [
'Dummy' => '', DummyController::class => '',
'Translation' => '' TranslationController::class => ''
] ]
); );