[BUGFIX] Upgrade extension registerPlugin
This commit is contained in:
parent
fb54d608a6
commit
d9e0ae6c44
12
Configuration/TCA/Overrides/tt_content.php
Normal file
12
Configuration/TCA/Overrides/tt_content.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
ExtensionUtility::registerPlugin(
|
||||
'TemplatesAide',
|
||||
'Translationplugin',
|
||||
''
|
||||
);
|
@ -1,34 +1,36 @@
|
||||
<?php
|
||||
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(
|
||||
function()
|
||||
{
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||
'Cjel.TemplatesAide',
|
||||
'TemplatesAide',
|
||||
'Dummy',
|
||||
[
|
||||
'Dummy' => 'list',
|
||||
'Translation' => 'translations'
|
||||
DummyController::class => 'list',
|
||||
TranslationController::class => 'translations'
|
||||
],
|
||||
// non-cacheable actions
|
||||
[
|
||||
'Dummy' => '',
|
||||
'Translation' => ''
|
||||
DummyController::class => '',
|
||||
TranslationController::class => ''
|
||||
]
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||
'Cjel.TemplatesAide',
|
||||
'TemplatesAide',
|
||||
'Translationplugin',
|
||||
[
|
||||
'Translation' => 'translations'
|
||||
TranslationController::class => 'translations'
|
||||
],
|
||||
// non-cacheable actions
|
||||
[
|
||||
'Dummy' => '',
|
||||
'Translation' => ''
|
||||
DummyController::class => '',
|
||||
TranslationController::class => ''
|
||||
]
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user