From b37e0bb7941e35cf787baaf06e8eebcc7be4d628 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Thu, 13 Dec 2018 15:53:24 +0100 Subject: [PATCH] support client-common 2.0 --- CHANGELOG.md | 4 ++++ DependencyInjection/HttplugExtension.php | 2 ++ composer.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a107f9e..6fdd144b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee ## Unreleased +### Changed + +- Allow version 2 of `php-http/client-common` + ### Fixed - Fix deprecated notice when using symfony/config > 4.2 diff --git a/DependencyInjection/HttplugExtension.php b/DependencyInjection/HttplugExtension.php index c88e2849..e0c7108f 100644 --- a/DependencyInjection/HttplugExtension.php +++ b/DependencyInjection/HttplugExtension.php @@ -3,8 +3,10 @@ namespace Http\HttplugBundle\DependencyInjection; use Http\Client\Common\BatchClient; +use Http\Client\Common\BatchClientImpl; use Http\Client\Common\FlexibleHttpClient; use Http\Client\Common\HttpMethodsClient; +use Http\Client\Common\HttpMethodsClientImpl; use Http\Client\Common\Plugin\AuthenticationPlugin; use Http\Client\Common\PluginClient; use Http\Client\Common\PluginClientFactory; diff --git a/composer.json b/composer.json index 6862b1a4..fc7748d0 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": "^5.5 || ^7.0", - "php-http/client-common": "^1.6", + "php-http/client-common": "^1.6 || ^2.0", "php-http/client-implementation": "^1.0", "php-http/cache-plugin": "^1.4", "php-http/discovery": "^1.0",