Skip to content

Commit 51d8d8a

Browse files
GrahamCampbellm1guelpf
authored andcommitted
Use the plugin client factory in the http client builder
1 parent c37f5f2 commit 51d8d8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Gitlab/HttpClient/Builder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Http\Client\Common\HttpMethodsClient;
66
use Http\Client\Common\Plugin;
77
use Http\Client\Common\PluginClient;
8+
use Http\Client\Common\PluginClientFactory;
89
use Http\Client\HttpClient;
910
use Http\Discovery\HttpClientDiscovery;
1011
use Http\Discovery\MessageFactoryDiscovery;
@@ -81,7 +82,7 @@ public function getHttpClient()
8182
$this->httpClientModified = false;
8283

8384
$this->pluginClient = new HttpMethodsClient(
84-
new PluginClient($this->httpClient, $this->plugins),
85+
(new PluginClientFactory())->createClient($this->httpClient, $this->plugins),
8586
$this->requestFactory
8687
);
8788
}

0 commit comments

Comments
 (0)