Skip to content

Commit 461f27b

Browse files
committed
Updating docs for new constructor
1 parent bd2dd41 commit 461f27b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/customize.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
yourself by calling `\Github\Client::setHttpClient`. A HTTP client must implement `Http\Client\HttpClient`. A list of
99
community provided clients is found here: https://packagist.org/providers/php-http/client-implementation
1010

11-
You can inject a HTTP client through `Github\Client#setHttpClient()` method:
11+
You can inject a HTTP client through the `Github\Client` constructor:
1212

1313
```php
14-
$client = new Github\Client();
15-
$client->setHttpClient(new Http\Adapter\Guzzle6\Client());
14+
$client = new Github\Client(new \Github\HttpClient\Builder(new Http\Adapter\Guzzle6\Client()));
1615
```
1716

1817
### Configure the HTTP client

0 commit comments

Comments
 (0)