-
Notifications
You must be signed in to change notification settings - Fork 15
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
Can't install this bundle in Symfony 4.2 or 4.3 #34
Comments
Hi @SulivanDotEu I encountered the same problem as you and tested most of your installs. In the end, here is what I've done to fix it :
Symfony autowiring is able to resolve I also made it work with HTTPlug Bundle by configuring a client and then use happyr_google_analytics:
tracking_id: '%env(GOOGLE_ANALYTICS_TRACKING_ID)%'
http_client: 'httplug.client.happyr_analytics'
http_message_factory: 'nyholm.psr7.psr17_factory' And httplug:
# ...
clients:
# ...
happyr_analytics:
http_methods_client: true I hope it will help |
I install (Symfony 4.3) composer require symfony/http-client (if not already in your dependencies) and config : happyr_google_analytics: httplug:
But still have an error Argument 1 passed to Happyr\GoogleAnalyticsBundle\Http\HttpClient::__construct() must be an instance of Psr\Http\Client\ClientInterface, instance of Http\Client\Common\HttpMethodsClient given, ok I change happyr_google_analytics: now it work. |
Hi there!
I am very interested in using this bundle for our project but we couldn't achieve to install it and make it work.
So I tried to reproduce our error in a brand new project.
Here are the step I followed:
symfony new httpclient
composer require symfony/maker-bundle
composer require template
composer require annotations
php bin\console make:controller
composer require happyr/google-analytics-bundle
composer require php-http/curl-client guzzlehttp/psr7 php-http/message
-> didn't work because of the error message:
composer require php-http/httplug-bundle php-http/curl-client guzzlehttp/psr7
composer require php-http/guzzle6-adapter
at this point, the kernel is compiling correctly and we created the branch master of our test project
Here is the error I have:
Because the bundle still wasn't working, I tried to use Symfony HttpClient in the other branch use-symfony-client
git checkout use-symfony-client
composer require symfony/http-client
composer require psr/http-client
composer require nyholm/psr7
Here is the error:
At this point, I honestly don't know what to do :s
I'm here to help with my limited knowledge of php http client ecosystem.
Best regards,
Benjamin
The text was updated successfully, but these errors were encountered: