dfc726bd5122ae383d16834d8204f32536cc9ab2
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / cli / scheduler_cli_dispatch.php
1 <?php
2 /*
3 * This file is part of the TYPO3 CMS project.
4 *
5 * It is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License, either version 2
7 * of the License, or any later version.
8 *
9 * For the full copyright and license information, please read the
10 * LICENSE.txt file that was distributed with this source code.
11 *
12 * The TYPO3 project - inspiring people to share!
13 */
14
15 /**
16 * Starts all due tasks, used by the command line interface
17 * This script must be included by the "CLI module dispatcher"
18 */
19
20 if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI && basename(PATH_thisScript) === 'cli_dispatch.phpsh') {
21 $schedulerCliController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Scheduler\Controller\SchedulerCliController::class);
22 $schedulerCliController->run();
23 } else {
24 die('This script must be included by the "CLI module dispatcher"');
25 }