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 bd2dd41 commit 461f27bCopy full SHA for 461f27b
doc/customize.md
@@ -8,11 +8,10 @@
8
yourself by calling `\Github\Client::setHttpClient`. A HTTP client must implement `Http\Client\HttpClient`. A list of
9
community provided clients is found here: https://packagist.org/providers/php-http/client-implementation
10
11
-You can inject a HTTP client through `Github\Client#setHttpClient()` method:
+You can inject a HTTP client through the `Github\Client` constructor:
12
13
```php
14
-$client = new Github\Client();
15
-$client->setHttpClient(new Http\Adapter\Guzzle6\Client());
+$client = new Github\Client(new \Github\HttpClient\Builder(new Http\Adapter\Guzzle6\Client()));
16
```
17
18
### Configure the HTTP client
0 commit comments