mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-11-14 01:06:12 +01:00
Daniel Siepmann
6f98b353fe
Add own module group and migrate old menu to different modules. This should improve user experience as most users are used to modules and are not aware of the dropdown menu. Rename Overview controller to Configuration controller As it handled configurations. This streamlines with labels and identifiers.
25 lines
850 B
PHP
25 lines
850 B
PHP
<?php
|
|
|
|
defined('TYPO3') or die();
|
|
|
|
\WerkraumMedia\ThueCat\Extension::registerConfig();
|
|
|
|
\WerkraumMedia\ThueCat\Updates\BackendModuleUserPermission::register();
|
|
|
|
(static function (string $extensionKey) {
|
|
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
|
|
'@import "EXT:' . $extensionKey . '/Configuration/TypoScript/Default/Setup.typoscript"'
|
|
);
|
|
|
|
$tablesForCleanup = [
|
|
'tx_thuecat_import_log',
|
|
'tx_thuecat_import_log_entry',
|
|
];
|
|
|
|
foreach ($tablesForCleanup as $tableName) {
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables'][$tableName] = [
|
|
'dateField' => 'crdate',
|
|
'expirePeriod' => '180',
|
|
];
|
|
}
|
|
})(\WerkraumMedia\ThueCat\Extension::EXTENSION_KEY);
|