b13 / slimphp-bridge

SlimPHP Integration in TYPO3 Frontend for rapid API development
GNU General Public License v2.0
18 stars 5 forks source link

TYPO3 10.4 and guzzlehttp/psr7 1.x #11

Closed dogawaf closed 2 years ago

dogawaf commented 2 years ago

Hello

On a TYPO3 10.4, I've just updated b13/slimphp-bridge to 0.4.0 with composer update -W b13/slimphp-bridge. The version of slim raised (because of -W) from 4.8.1 to 4.10.0, but this new version of slim does not autodetect guzzlehttp/psr7 1.x anymore.

(1/1) RuntimeException
Could not detect any PSR-17 ResponseFactory implementations. Please install a supported implementation in order to use `AppFactory::create()`. See https://github.com/slimphp/Slim/blob/4.x/README.md for a list of supported implementations.

I had to require sapphirecat/slim4-http-interop-adapter in order to get things right again. See their README for a detailed explanation.

Because typo3/cms-core 10.4 requires guzzlehttp/psr7:^1.8.5 (11.5+ allows guzzlehttp/psr7:^1.8.5 || ^2.1.2), I think sapphirecat/slim4-http-interop-adapter should also require for b13/slimphp-bridge