Skip to content

Commit b29eb03

Browse files
committed
Add streamFactory param
1 parent 8d24aad commit b29eb03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Common/Http/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Psr\Http\Message\StreamFactoryInterface;
1212
use Psr\Http\Message\StreamInterface;
1313
use Psr\Http\Client\ClientInterface as HttpClientInterface;
14-
use Psr\Http\Message\RequestFactoryInterface as RequestFactoryInterface;
15-
use Psr\Http\Message\UriFactoryInterface;
14+
use Psr\Http\Message\RequestFactoryInterface;
1615

1716
class Client implements ClientInterface
1817
{
@@ -33,10 +32,11 @@ class Client implements ClientInterface
3332
*/
3433
private $streamFactory;
3534

36-
public function __construct($httpClient = null, $requestFactory = null)
35+
public function __construct($httpClient = null, $requestFactory = null, $streamFactory = null)
3736
{
3837
$this->httpClient = $httpClient;
3938
$this->requestFactory = $requestFactory;
39+
$this->streamFactory = $streamFactory;
4040
}
4141

4242
private function getHttpClient() : HttpClientInterface

0 commit comments

Comments
 (0)