Skip to content
Snippets Groups Projects
Commit 970d9bf8 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Georg Ringer
Browse files

[TASK] Extbase controller actions must return ResponseInterface

In the past, Extbase controller actions could return either void,
null, a string, or an object that implemented the __toString()
method. All those return types are now deprecated in favor of
an instance of \Psr\Http\Message\ResponseInterface (PSR-7).

Response objects can be created in the controller by using the
response factory which is injected into all action controllers.

Alternatively, custom response objects can be declared and used
as long as they implement the interface and are therefore PSR-7
compatible.

Releases: master
Resolves: #92784
Change-Id: If1e778c29f870fd0e78d253f0cfcff359a0babae
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66553


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarTorben Hansen <derhansen@gmail.com>
Tested-by: default avatarDaniel Haupt <mail@danielhaupt.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarTorben Hansen <derhansen@gmail.com>
Reviewed-by: default avatarDaniel Haupt <mail@danielhaupt.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 36133f6e
Showing
with 295 additions and 41 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment