You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument 2 passed to Symfony\Component\HttpClient\HttplugClient::__construct() must be an instance of Psr\Http\Message\ResponseFactoryInterface or null, instance of Nyholm\Psr7\Factory\HttplugFactory
$ composer create-project symfony/skeleton my-project -s dev
$ cd my-project
$ composer req annotations http-client php-http/httplug nyholm/psr7
$ # copy the code above to src/Controller/IndexController.php
$ symfony serve
$ # and open the home page
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hello!
When I try to autowire HttplugClient like this:
I get this error
I think it should work out of the box because the aliases provided by https://github.com/symfony/recipes/blob/master/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml
It's a bug or am I missing something?
Steps to reproduce:
Thanks for your help!
The text was updated successfully, but these errors were encountered: