[TASK] Move "pageUnavailable_force" into a PSR-15 middleware 21/55721/5
authorBenni Mack <benni@typo3.org>
Wed, 14 Feb 2018 20:31:35 +0000 (21:31 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 15 Feb 2018 18:05:57 +0000 (19:05 +0100)
commitb4aa8b7f902c51b76b60d24cca6dc40adfda82ba
tree38f18631a6083aa47cbea0f691ad84f615c594cc
parent54d3af08df9276694d353244c7eb269790de885e
[TASK] Move "pageUnavailable_force" into a PSR-15 middleware

The check if the frontend is in "maintenance mode",
set by $GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_force'],
is moved into a custom PSR-15 based middleware,
effectively decoupling this logic from TSFE object.

Resolves: #83917
Releases: master
Change-Id: I38c42069b82ca2403df9aa4b0e66410a3dfe6404
Reviewed-on: https://review.typo3.org/55721
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/frontend/Classes/Middleware/MaintenanceMode.php [new file with mode: 0644]
typo3/sysext/frontend/Configuration/RequestMiddlewares.php