We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df9a8d commit d5fe6f2Copy full SHA for d5fe6f2
src/Client.php
@@ -42,9 +42,21 @@ public function __construct($server = '', $version = 'v2')
42
public static function constructWithGuzzleClient(GuzzleClient $guzzleClient, $server, $version)
43
{
44
$client = new Client($server, $version);
45
- $client->guzzleClient = $guzzleClient;
+ $client->setGuzzleClient($guzzleClient);
46
return $client;
47
}
48
+
49
50
+ /**
51
+ * Set custom GuzzleClient in Client
52
+ * @param GuzzleClient $guzzleClient
53
+ * @return Client
54
+ */
55
+ public function setGuzzleClient(GuzzleClient $guzzleClient)
56
+ {
57
+ $this->guzzleclient = $guzzleClient;
58
+ return $this;
59
+ }
60
61
/**
62
* Set the default root directory. the default is `/`
0 commit comments