Skip to content

Commit d6669e8

Browse files
authored
Allow data about our plugin to show up in Symfony debug toolbar (KnpLabs#687)
* Allow data about our plugin to show up in Symfony webdebug bar * Update CHANGELOG.md
1 parent a173d54 commit d6669e8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5+
## 2.8.0
6+
7+
### Added
8+
9+
- Allow our HTTP plugins to show up in the Symfony web profiler page.
10+
511
## 2.7.0
612

713
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php-http/httplug": "^1.1",
2424
"php-http/discovery": "^1.0",
2525
"php-http/client-implementation": "^1.0",
26-
"php-http/client-common": "^1.3",
26+
"php-http/client-common": "^1.6",
2727
"php-http/cache-plugin": "^1.4"
2828
},
2929
"require-dev": {

lib/Github/HttpClient/Builder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Http\Client\Common\Plugin;
77
use Http\Client\Common\Plugin\Cache\Generator\HeaderCacheKeyGenerator;
88
use Http\Client\Common\PluginClient;
9+
use Http\Client\Common\PluginClientFactory;
910
use Http\Client\HttpClient;
1011
use Http\Discovery\HttpClientDiscovery;
1112
use Http\Discovery\MessageFactoryDiscovery;
@@ -102,7 +103,7 @@ public function getHttpClient()
102103
}
103104

104105
$this->pluginClient = new HttpMethodsClient(
105-
new PluginClient($this->httpClient, $plugins),
106+
(new PluginClientFactory())->createClient($this->httpClient, $plugins),
106107
$this->requestFactory
107108
);
108109
}

0 commit comments

Comments
 (0)