Actions
Bug #72212
closedgetIncludeScriptByCommandLineKey() PHPdoc wrong - returns Array not string
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-12-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
The PHPdoc is wrong - in class TYPO3\CMS\Backend\Console\CliRequestHandler
I searched for a category "CLI", but there isn't any.
/** * Define cli-related parameters and return the include script as well as the command line name. Used for * authentication against the backend user in the "laodCommandLineBackendUser()" action. * * @param string $cliKey the CLI key * @return string the absolute path to the include script */ protected function getIncludeScriptByCommandLineKey($cliKey) { list($commandLineScript, $commandLineName) = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$cliKey]; if (!is_callable($commandLineScript)) { $commandLineScript = GeneralUtility::getFileAbsFileName($commandLineScript); // Note: These constants are not in use anymore, and marked for deprecation and will be removed in TYPO3 CMS 8 define('TYPO3_cliKey', $cliKey); define('TYPO3_cliInclude', $commandLineScript); } // This is a compatibility layer: Some cli scripts rely on this, like ext:phpunit cli // This layer will be removed in TYPO3 CMS 8 $GLOBALS['temp_cliScriptPath'] = array_shift($_SERVER['argv']); $GLOBALS['temp_cliKey'] = array_shift($_SERVER['argv']); array_unshift($_SERVER['argv'], $GLOBALS['temp_cliScriptPath']); return array($commandLineScript, $commandLineName); }
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45252
Updated by Wouter Wolters almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a28a4b7a7cc5074a6e4eb6050504ed263ace43ce.
Actions