Project

General

Profile

Actions

Feature #89018

closed

Provide implementation for PSR-17 HTTP Message Factories

Added by Benjamin Franzke about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Start date:
2019-08-26
Due date:
% Done:

100%

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

Description

PSR-17 [1] HTTP Factories are useful in generic middlewares or request handlers, as they allow to create PSR-7 responses without relying on a specific PSR-7 implementation.

Gains for TYPO3 extensions:

  • While the TYPO3's PSR-7 implementation is marked @internal, the availability of the PSR-17 interfaces is considered public TYPO3 API (implementations are made available through the DI container)
  • Allows TYPO3 extensions to inlude generic PSR-15 middlewares from external packages (which may already make use of PSR-17 factories to create PSR-7 response objects).

[1] https://www.php-fig.org/psr/psr-17/

Actions

Also available in: Atom PDF