[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
|
<?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 => ''
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user