Closed NicoP-S closed 4 years ago
@webmaster777 like you said i checked the CommonPsr17ClassesStrategy.php https://github.com/slimphp/Slim-Psr7/issues/172#issuecomment-710064738
It references
'Http\Factory\Slim\RequestFactory'
'Http\Factory\Slim\ResponseFactory'
'Http\Factory\Slim\ServerRequestFactory'
'Http\Factory\Slim\StreamFactory'
'Http\Factory\Slim\UploadedFileFactory'
'Http\Factory\Slim\UriFactory'
I think the namespace is not correct anymore. Correct would be Slim\Psr7\Factory\...
https://github.com/slimphp/Slim-Psr7/tree/master/src/Factory
Am i right? Sorry for asking.
are these Http\Factory\Slim* things a legacy thing and the current slim thing is Slim\Psr7\Factory*? if that is the case, it would be great if you can do a pull request to add the Slim\Psr7 classes in the appropriate places so that they can be discovered.
I found the old repo for factories btw: https://github.com/http-interop/http-factory-slim It indeed predates the PSR-17 implementation of Slim.
In order to maintain BC we should only add the new Slim implementations, right?
PHP version: 7.3.23
Description
I am trying to get GitLabPHP/Client running with Slim Psr7 ( psr17 compliant ). It uses discovery.
The Docs say that slim framework should work:
Error Message:
It checks for
Http\Factory\Slim\RequestFactory
. I have checked my vendor dir but I only gotSlim\Psr7\Factory\RequestFactory
I don't know if it is a problem of slimphp/Slim-Psr7 or this repo. Or maybe my setup?
How to reproduce
test.php:
Possible Solution
Additional context
GitLabPHP/Client#586