397b28084a36d14a5364e1627f54cf505c4d9541
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 // Setting up scripts that can be run from the cli_dispatch.phpsh script.
6 // Using cliKeys is deprecated as of TYPO3 v8 and will be removed in TYPO3 v9, use Configuration/Commands.php instead
7 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_cleaner'] = [
8 function () {
9 $cleanerObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Lowlevel\CleanerCommand::class);
10 $cleanerObj->cli_main($_SERVER['argv']);
11 }
12 ];
13 }