4 * This file is part of the TYPO3 CMS project.
6 * It is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License, either version 2
8 * of the License, or any later version.
10 * For the full copyright and license information, please read the
11 * LICENSE.txt file that was distributed with this source code.
13 * The TYPO3 project - inspiring people to share!
17 * Command Line Interface module dispatcher
19 * This script takes a "cliKey" as first argument and uses that to dispatch
20 * the call to a registered script with that key.
21 * Valid cliKeys must be registered in
22 * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'].
24 call_user_func(function() {
25 $classLoader = require __DIR__
. '/../vendor/autoload.php';
26 (new \TYPO3\CMS\Backend\Console\
Application($classLoader))->run();