Skip to content

Commit

Permalink
[FEATURE] Add normalized server parameters to PSR-7 requests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lolli42 authored and bmack committed Feb 14, 2018
1 parent 3ca4635 commit 340f4ea
Show file tree
Hide file tree
Showing 9 changed files with 2,091 additions and 3 deletions.
8 changes: 7 additions & 1 deletion typo3/sysext/backend/Configuration/RequestMiddlewares.php
Expand Up @@ -14,10 +14,16 @@
'typo3/cms-core/legacy-request-handler-dispatcher' => [
'target' => \TYPO3\CMS\Core\Middleware\LegacyRequestHandlerDispatcher::class,
],
'typo3/cms-core/normalized-params-attribute' => [
'target' => \TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute::class,
'after' => [
'typo3/cms-core/legacy-request-handler-dispatcher',
],
],
'typo3/cms-backend/locked-backend' => [
'target' => \TYPO3\CMS\Backend\Middleware\LockedBackendGuard::class,
'after' => [
'typo3/cms-core/legacy-request-handler-dispatcher'
'typo3/cms-core/normalized-params-attribute'
],
],
'typo3/cms-backend/https-redirector' => [
Expand Down

0 comments on commit 340f4ea

Please sign in to comment.