[TASK] Move cli script to Resources/PHP in ext:scheduler 85/41785/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 21 Jul 2015 15:40:52 +0000 (17:40 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 21 Jul 2015 16:53:39 +0000 (18:53 +0200)
Resolves: #68436
Releases: master
Change-Id: I466fad8f5579bde5d4619252d65757ebf947ad14
Reviewed-on: http://review.typo3.org/41785
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/scheduler/Resources/PHP/scheduler_cli_dispatch.php [new file with mode: 0644]
typo3/sysext/scheduler/cli/scheduler_cli_dispatch.php [deleted file]
typo3/sysext/scheduler/ext_localconf.php

diff --git a/typo3/sysext/scheduler/Resources/PHP/scheduler_cli_dispatch.php b/typo3/sysext/scheduler/Resources/PHP/scheduler_cli_dispatch.php
new file mode 100644 (file)
index 0000000..dfc726b
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+/**
+ * Starts all due tasks, used by the command line interface
+ * This script must be included by the "CLI module dispatcher"
+ */
+
+if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI && basename(PATH_thisScript) === 'cli_dispatch.phpsh') {
+       $schedulerCliController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Scheduler\Controller\SchedulerCliController::class);
+       $schedulerCliController->run();
+} else {
+       die('This script must be included by the "CLI module dispatcher"');
+}
diff --git a/typo3/sysext/scheduler/cli/scheduler_cli_dispatch.php b/typo3/sysext/scheduler/cli/scheduler_cli_dispatch.php
deleted file mode 100644 (file)
index dfc726b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * Starts all due tasks, used by the command line interface
- * This script must be included by the "CLI module dispatcher"
- */
-
-if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI && basename(PATH_thisScript) === 'cli_dispatch.phpsh') {
-       $schedulerCliController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Scheduler\Controller\SchedulerCliController::class);
-       $schedulerCliController->run();
-} else {
-       die('This script must be included by the "CLI module dispatcher"');
-}
index bcd9857..85e291b 100644 (file)
@@ -3,7 +3,7 @@ defined('TYPO3_MODE') or die();
 
 // Register the Scheduler as a possible key for CLI calls
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['scheduler'] = array(
-       'EXT:scheduler/cli/scheduler_cli_dispatch.php',
+       'EXT:scheduler/Resources/PHP/scheduler_cli_dispatch.php',
        '_CLI_scheduler'
 );
 // Get the extensions's configuration