[TASK] Ensure HTTP RequestHandlers always return a PSR-7 Repsonse 98/55498/10
authorBenjamin Franzke <bfr@qbus.de>
Wed, 24 Jan 2018 21:25:52 +0000 (22:25 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 1 Feb 2018 18:13:09 +0000 (19:13 +0100)
commit123846c0fbc580414457a5fb0379326423bf2c2b
tree28451ab9395a5343089f5bd319c0cde634979b1e
parent132605522bf36f536657ab092c8ef3c49157ba89
[TASK] Ensure HTTP RequestHandlers always return a PSR-7 Repsonse

This is in preparation for PSR-15 middleware support which
will require PSR-7 RespnseInterface return type declarations
for request handlers.

As TSFE powers a concept of outputting nothing [see isOutputting()]
we need to add NullResponse (which implements the PSR-7 ResponseInterface)
which Core/Bootstrap can detect, to stop invoking header() and echo.

Change-Id: Ie3169a4365a85d0472523138cc73bb47cbbcb70f
Releases: master
Resolves: #83724
Reviewed-on: https://review.typo3.org/55498
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
12 files changed:
typo3/sysext/backend/Classes/Http/AjaxRequestHandler.php
typo3/sysext/backend/Classes/Http/RequestHandler.php
typo3/sysext/core/Classes/Console/CommandRequestHandler.php
typo3/sysext/core/Classes/Console/RequestHandlerInterface.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Http/NullResponse.php [new file with mode: 0644]
typo3/sysext/core/Classes/Http/RequestHandlerInterface.php
typo3/sysext/core/Documentation/Changelog/master/Important-83724-APIAndBehaviorChangeInRequestHandlerClasses.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Http/EidRequestHandler.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/install/Classes/Http/InstallerRequestHandler.php
typo3/sysext/install/Classes/Http/RequestHandler.php