[TASK] Move BE-related bootstrap code to PSR-15 middleware 38/55538/8
authorBenni Mack <benni@typo3.org>
Sat, 3 Feb 2018 21:08:49 +0000 (22:08 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 8 Feb 2018 21:04:31 +0000 (22:04 +0100)
commit6cc0b487f595c841ce3f171501b60f70564afb08
tree5069dbf490a9f156f1898f4ceac94223e08518e3
parent06fbb8cfe0e0a0842feccf8423a48462e4f3474c
[TASK] Move BE-related bootstrap code to PSR-15 middleware

Various functionality used by both backend request handlers is moved
into PSR-15 compatible middleware, making the following Bootstrap
methods obsolete:

- checkLockedBackendAndRedirectOrDie()
- checkBackendIpOrDie()
- checkSslBackendAndRedirectIfNeeded()
- initializeBackendTemplate()
- initializeOutputCompression()
- sendHttpHeaders()

The following methods are still needed in other contexts however
- initializeBackendRouter()
- loadExtTables()
- endOutputBufferingAndCleanPreviousOutput()
- initializeBackendAuthentication()
- initializeBackendUser()
- initializeLanguageObject()

Resolves: #83792
Releases: master
Change-Id: I6772bbb73f17100dfc5116f58f1202f52fee1e8d
Reviewed-on: https://review.typo3.org/55538
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/Http/AjaxRequestHandler.php
typo3/sysext/backend/Classes/Http/RequestHandler.php
typo3/sysext/backend/Classes/Middleware/AdditionalResponseHeaders.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Middleware/LegacyBackendTemplateInitialization.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Middleware/OutputCompression.php [new file with mode: 0644]
typo3/sysext/backend/Configuration/RequestMiddlewares.php [new file with mode: 0644]