File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Original file line number Diff line number Diff line change @@ -1582,14 +1582,14 @@ interoperable with libraries that require it thanks to the
1582
1582
Let's say you want to instantiate a class with the following constructor,
1583
1583
that requires HTTPlug dependencies::
1584
1584
1585
- use Http\Client\HttpClient ;
1585
+ use Http\Client\HttpAsyncClient ;
1586
1586
use Http\Message\RequestFactory;
1587
1587
use Http\Message\StreamFactory;
1588
1588
1589
1589
class SomeSdk
1590
1590
{
1591
1591
public function __construct(
1592
- HttpClient $httpClient,
1592
+ HttpAsyncClient $httpClient,
1593
1593
RequestFactory $requestFactory,
1594
1594
StreamFactory $streamFactory
1595
1595
)
@@ -1603,8 +1603,7 @@ Because ``HttplugClient`` implements the three interfaces, you can use it this w
1603
1603
$httpClient = new HttplugClient();
1604
1604
$apiClient = new SomeSdk($httpClient, $httpClient, $httpClient);
1605
1605
1606
- If you'd like to work with promises, ``HttplugClient `` also implements the
1607
- ``HttpAsyncClient `` interface. To use it, you need to install the
1606
+ To use it, you need to install the
1608
1607
``guzzlehttp/promises `` package:
1609
1608
1610
1609
.. code-block :: terminal
You can’t perform that action at this time.
0 commit comments