[FEATURE] Add normalized server parameters to PSR-7 requests
To slowly substitute GeneralUtility::getIndpEnv() with a better API, a new class is introduced that calculates all normalized server parameters. The object is added as PSR-7 request attribute in a frontend and backend middleware. For a transition phase, the request is made available as $GLOBALS['TYPO3_REQUEST'] until enough core code has been refactored to get rid of this again. Resolves: #83736 Releases: master Change-Id: I96c8cb6dda4cc38bbb51b64439b8e81f2c00d7ac Reviewed-on: https://review.typo3.org/55506 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Benjamin Franzke <bfr@qbus.de> Tested-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Configuration/RequestMiddlewares.php 7 additions, 1 deletiontypo3/sysext/backend/Configuration/RequestMiddlewares.php
- typo3/sysext/core/Classes/Http/NormalizedParams.php 810 additions, 0 deletionstypo3/sysext/core/Classes/Http/NormalizedParams.php
- typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php 51 additions, 0 deletions...ext/core/Classes/Middleware/NormalizedParamsAttribute.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst 38 additions, 0 deletions...ster/Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst
- typo3/sysext/core/Documentation/Changelog/master/Feature-83736-ExtendedPSR-7RequestsWithTYPO3ServerParameters.rst 72 additions, 0 deletions...-83736-ExtendedPSR-7RequestsWithTYPO3ServerParameters.rst
- typo3/sysext/core/Tests/Unit/Http/NormalizedParamsTest.php 1100 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Http/NormalizedParamsTest.php
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php 1 addition, 1 deletiontypo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
- typo3/sysext/frontend/Configuration/RequestMiddlewares.php 7 additions, 1 deletiontypo3/sysext/frontend/Configuration/RequestMiddlewares.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayGlobalMatcher.php 5 additions, 0 deletions...Configuration/ExtensionScanner/Php/ArrayGlobalMatcher.php
Please register or sign in to comment