Project

General

Profile

Actions

Task #83724

closed

Epic #83894: PSR-15 Initiative

HTTP RequestHandlers should always return a PSR-7 ResponseInterface, not NULL

Added by Benjamin Franzke almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2018-01-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The PSR-15 middleware interfaces [1] require that RequestHandlers always return a Response.
In order to support PSR-15 middleware (at some point), TYPO3 request handlers should do the same.

A NULL return value should rather be replaced with a PSR-7 Response that's either ignored by Core\Bootstrap or a Response with a 200 status code and an empty body.

[1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #83725: Introduce PSR-15 HTTP Middleware supportClosed2018-01-29

Actions
Related to TYPO3 Core - Task #83726: HTTP RequestHandlers should use strict typingClosed2018-01-29

Actions
Actions

Also available in: Atom PDF