[TASK] Use new CLI binary in docs instead of cli_dispatch.phpsh
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Classes / Example / TestTask.php
index 7e2912e..97cf7fb 100644 (file)
@@ -43,7 +43,7 @@ class TestTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask
             // Get execution information
             $exec = $this->getExecution();
             // Get call method
-            if (basename(PATH_thisScript) === 'cli_dispatch.phpsh') {
+            if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
                 $calledBy = 'CLI module dispatcher';
                 $site = '-';
             } else {