#23091Use TYPO3_REQUESTTYPE consistently for CLI calls detection
Description
Throughout the core, a CLI call is identified using the following test:
defined(‘TYPO3_cliMode’) && TYPO3_cliMode
although t3lib/config_default.php harmonizes all request types into a single constant called TYPO3_REQUESTTYPE. This means the above test can be replaced by:
TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI
to be consistent.
An exception is 2 t3lib_div methods, because we cannot be sure that t3lib/config_default.php has been called beforehand, so TYPO3_REQUESTTYPE may not be defined.
(issue imported from #M14989)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.