2 defined(
'TYPO3_MODE') or die();
4 if (TYPO3_MODE === 'BE') {
6 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'GLOBAL'][
'cliKeys'][
'lowlevel_refindex'] = array(
9 if (in_array(
'-e', $_SERVER[
'argv']) || in_array(
'-c', $_SERVER[
'argv'])) {
10 $testOnly = in_array(
'-c', $_SERVER[
'argv']);
11 $refIndexObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ReferenceIndex::class);
12 list($headerContent, $bodyContent) = $refIndexObj->updateIndex($testOnly, !in_array(
'-s', $_SERVER[
'argv']));
13 $bodyContent = str_replace(
'##LF##', LF, $bodyContent);
26 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'GLOBAL'][
'cliKeys'][
'lowlevel_cleaner'] = array(
28 $cleanerObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Lowlevel\CleanerCommand::class);
29 $cleanerObj->cli_main($_SERVER[
'argv']);
33 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'GLOBAL'][
'cliKeys'][
'lowlevel_admin'] = array(
35 $adminObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Lowlevel\AdminCommand::class);
36 $adminObj->cli_main($_SERVER[
'argv']);
40 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'missing_files'] = array(\TYPO3\CMS\Lowlevel\MissingFilesCommand::class);
41 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'missing_relations'] = array(\TYPO3\CMS\Lowlevel\MissingRelationsCommand::class);
42 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'double_files'] = array(\TYPO3\CMS\Lowlevel\DoubleFilesCommand::class);
43 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'rte_images'] = array(\TYPO3\CMS\Lowlevel\RteImagesCommand::class);
44 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'lost_files'] = array(\TYPO3\CMS\Lowlevel\LostFilesCommand::class);
45 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'orphan_records'] = array(\TYPO3\CMS\Lowlevel\OrphanRecordsCommand::class);
46 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'deleted'] = array(\TYPO3\CMS\Lowlevel\DeletedRecordsCommand::class);
47 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'versions'] = array(\TYPO3\CMS\Lowlevel\VersionsCommand::class);
48 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'cleanflexform'] = array(\TYPO3\CMS\Lowlevel\CleanFlexformCommand::class);
49 $GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'lowlevel'][
'cleanerModules'][
'syslog'] = array(\TYPO3\CMS\Lowlevel\SyslogCommand::class);