[TASK] Separate Error handling from TSFE 90/55690/20
authorBenni Mack <benni@typo3.org>
Mon, 12 Feb 2018 21:12:33 +0000 (22:12 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 15 Feb 2018 11:54:30 +0000 (12:54 +0100)
commita77b2e09e0ae89c88c28b3266220f91bfd6ba28b
treef1a76edd265fc1039f77c3d3134a38e186074afc
parent6362f63fc00f507c41ba401f9eb15fd415a5a6c4
[TASK] Separate Error handling from TSFE

The goal is to decouple error handling from TSFE.
For that, a new ErrorController is added which can be
called and returns a Response object instead of
exits the current request.

In order to keep full backwards-compatibility,
TSFE currently does not return a response, but
instead exists with a response object.

Next step:
- Move the pageUnavailable_force functionality into a middleware
- See what can be further abstracted to return a response

Resolves: #83883
Releases: master
Change-Id: I41f5f1a32a3f7edd48eb5c0464a26762ad4a946f
Reviewed-on: https://review.typo3.org/55690
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/core/Documentation/Changelog/master/Deprecation-83883-PageNotFoundAndErrorHandlingInFrontend.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/ErrorController.php [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php [new file with mode: 0644]
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php