From a6fb09e11dbe941b54f736d8018fed73e6d5410b Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 6 Mar 2018 10:02:38 +0100 Subject: [PATCH 1/2] Allow data about our plugin to show up in Symfony webdebug bar --- composer.json | 2 +- lib/Github/HttpClient/Builder.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 157da0f348a..6ad8173d1bc 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php-http/httplug": "^1.1", "php-http/discovery": "^1.0", "php-http/client-implementation": "^1.0", - "php-http/client-common": "^1.3", + "php-http/client-common": "^1.6", "php-http/cache-plugin": "^1.4" }, "require-dev": { diff --git a/lib/Github/HttpClient/Builder.php b/lib/Github/HttpClient/Builder.php index fe9499b29e8..e1c2050b2c6 100644 --- a/lib/Github/HttpClient/Builder.php +++ b/lib/Github/HttpClient/Builder.php @@ -6,6 +6,7 @@ use Http\Client\Common\Plugin; use Http\Client\Common\Plugin\Cache\Generator\HeaderCacheKeyGenerator; use Http\Client\Common\PluginClient; +use Http\Client\Common\PluginClientFactory; use Http\Client\HttpClient; use Http\Discovery\HttpClientDiscovery; use Http\Discovery\MessageFactoryDiscovery; @@ -102,7 +103,7 @@ public function getHttpClient() } $this->pluginClient = new HttpMethodsClient( - new PluginClient($this->httpClient, $plugins), + (new PluginClientFactory())->createClient($this->httpClient, $plugins), $this->requestFactory ); } From baf3b2a75caa293e163d7d3614570321aee2e2f9 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Wed, 7 Mar 2018 16:05:26 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ad5da91b84..a1a4c427fb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release. +## 2.8.0 + +### Added + +- Allow our HTTP plugins to show up in the Symfony web profiler page. + ## 2.7.0 ### Added