Commit 9987904d authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Use strings instead of variables for TCA configuration

parent 6eb533a4
......@@ -24,7 +24,7 @@
***************************************************************/
call_user_func(
function ($extKey) {
static function () {
// add upgrade wizard for moving all db entries to their respected siteroot
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgMail\Updates\UpdatePidToSiteRoot::IDENTIFIER] = \SGalinski\SgMail\Updates\UpdatePidToSiteRoot::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgMail\Updates\UpdateSendingTimes::IDENTIFIER] = \SGalinski\SgMail\Updates\UpdateSendingTimes::class;
......@@ -34,7 +34,7 @@ call_user_func(
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'@import "EXT:' . $extKey . '/Configuration/TypoScript/setup.typoscript"'
'@import "EXT:sg_mail/Configuration/TypoScript/setup.typoscript"'
);
}
......@@ -55,5 +55,5 @@ call_user_func(
\SGalinski\SgMail\Service\RegisterService::class
);
$registerService->registerCache();
}, 'sg_mail'
}
);
......@@ -24,9 +24,9 @@
***************************************************************/
call_user_func(
function ($extKey) {
static function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SGalinski.' . $extKey,
'SGalinski.sg_mail',
'web',
'Mail',
'',
......@@ -39,8 +39,8 @@ call_user_func(
],
[
'access' => 'user,group',
'icon' => 'EXT:' . $extKey . '/Resources/Public/Icons/ModuleIcon.svg',
'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang.xlf',
'icon' => 'EXT:sg_mail/Resources/Public/Icons/ModuleIcon.svg',
'labels' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang.xlf',
]
);
......@@ -49,5 +49,5 @@ call_user_func(
'tx_sgmail_domain_model_template'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sgmail_domain_model_layout');
}, 'sg_mail'
}
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment