[!!!][TASK] Use request type constants everywhere 79/45379/5
authorBenni Mack <benni@typo3.org>
Sat, 19 Dec 2015 22:07:31 +0000 (23:07 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 30 Dec 2015 17:38:00 +0000 (18:38 +0100)
commited879e99f6ce9cfe132b09289010ab8ec75d7475
tree5cae10ee093c018d82194cd2a1dda906cbe0f3af
parentb81e4fa07368dc2f8212a20095ff6e0c3cb8a14b
[!!!][TASK] Use request type constants everywhere

Each entry point (application) now defines the actual
request type at a very early point of the request, so
each call within TYPO3 can use the predefined constants
at all times.

Previously this was done within the Bootstrap after loading
LocalConfiguration.php etc, and by evaluating other
parameters to detect which RequestType should be used.

By directly setting the option within each application, the
constants "TYPO3_enterInstallScript" and "TYPO3_cliMode"
can be removed, as well as $GLOBALS['TYPO3_AJAX'].

Resolves: #72368
Releases: master
Change-Id: I5080e425d70cb6d4c9a9573dbc20216c93cd3332
Reviewed-on: https://review.typo3.org/45379
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
15 files changed:
typo3/sysext/backend/Classes/Console/Application.php
typo3/sysext/backend/Classes/Http/Application.php
typo3/sysext/core/Build/UnitTestsBootstrap.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Classes/Utility/PathUtility.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-72368-TYPO3ConstantsRemoved.rst [new file with mode: 0644]
typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/extbase/Classes/Service/EnvironmentService.php
typo3/sysext/frontend/Classes/Http/Application.php
typo3/sysext/install/Classes/Http/Application.php
typo3/sysext/install/ext_tables.php