-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psr17 discorvery not working #172
Comments
Meh, it's not a bug. The factories in this repo are just not in any of the default strategies (e.g. The factories it does look for are in an other repo (https://github.com/slimphp/Slim-Http). However, you should be able to configure your container to use the factories in this repo. |
You could also provide your own strategy to resolve into the classes in this repo, or send a PR to php-http/discovery to add these classes to the |
ref: GitLabPHP/Client#586 |
I also tried with slim/http but it gives the same error.
I will go the way you mentioned
Thanks for your help! |
Makes sense, slim/http only decorates the classes, it does not provide actual psr-7 or psr-17 implementation itself I think. |
Hi,
i am trying to get slim psr-7 running in an project where https://github.com/php-http/discovery is used. But I get following error.
It tests for Http\Factory\Slim\RequestFactory.
I have checked my vendor dir. I only have Slim\Psr7\Factory\RequestFactory
Am I doing something wrong ?
Or is this a bug in one of slim/psr7 or php-http/discovery ?
The text was updated successfully, but these errors were encountered: