Issue Bug Closed

#93237TYPO3 should not extend PSR-17 interfaces for Extbase usage

Benjamin Franzke 01/06/21, 21:27 updated 02/23/21, 13:12

Description

..but extbase should rather use PSR-17 as is.

The interface TYPO3\CMS\Core\Http\ResponseFactory – introduced by https://review.typo3.org/c/Packages/TYPO3.CMS/+/66553 – contradicts the ideas of interchangable PSR interfaces and therefore we should strive for native PSR-17 usage, instead of wrapping the interfaces, instead.

Also, concrete PSR-7 implementation should be kept @internal, and only the instances of the interfaces (as aliased into the DI container), should be “public” api.

The Extbase ActionController is free to provide helper methods around the PSR ResponseFactory, but should use PSR-17 directly.

Reviews 1