2021-02-03 17:20:01 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
defined('TYPO3') or die();
|
|
|
|
|
|
|
|
\WerkraumMedia\ThueCat\Extension::registerConfig();
|
2021-06-01 09:44:14 +02:00
|
|
|
|
2023-01-30 15:51:17 +01:00
|
|
|
\WerkraumMedia\ThueCat\Updates\BackendModuleUserPermission::register();
|
|
|
|
|
2021-06-01 09:44:14 +02:00
|
|
|
(static function (string $extensionKey) {
|
|
|
|
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
|
|
|
|
'@import "EXT:' . $extensionKey . '/Configuration/TypoScript/Default/Setup.typoscript"'
|
|
|
|
);
|
2023-01-03 10:42:33 +01:00
|
|
|
|
|
|
|
$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',
|
|
|
|
];
|
|
|
|
}
|
2021-06-01 09:44:14 +02:00
|
|
|
})(\WerkraumMedia\ThueCat\Extension::EXTENSION_KEY);
|