[TASK] EM: Require confirmation to continue on dependency failure
[Packages/TYPO3.CMS.git] / typo3 / cli_dispatch.phpsh
1 #! /usr/bin/env php
2 <?php
3 /*
4 * This file is part of the TYPO3 CMS project.
5 *
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.
9 *
10 * For the full copyright and license information, please read the
11 * LICENSE.txt file that was distributed with this source code.
12 *
13 * The TYPO3 project - inspiring people to share!
14 */
15
16 /**
17 * Command Line Interface module dispatcher
18 *
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'].
23 *
24 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
25 */
26 define('TYPO3_MODE', 'BE');
27 define('TYPO3_cliMode', TRUE);
28
29 require __DIR__ . '/sysext/core/Classes/Core/CliBootstrap.php';
30 \TYPO3\CMS\Core\Core\CliBootstrap::checkEnvironmentOrDie();
31
32 require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
33 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->run('typo3/')->shutdown();