Skip to content

Commit a48b4cc

Browse files
author
Kenny
committed
Add argument $config to constructor of HttpRequestManager
1 parent 881720a commit a48b4cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RequestManagers/HttpRequestManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class HttpRequestManager extends RequestManager implements IRequestManager
3434
*
3535
* @param string $host
3636
* @param int $timeout
37-
* @return void
37+
* @param array $config
3838
*/
39-
public function __construct($host, $timeout = 1)
39+
public function __construct(string $host, int $timeout = 1, array $config = [])
4040
{
4141
parent::__construct($host, $timeout);
42-
$this->client = new Client;
42+
$this->client = new Client($config);
4343
}
4444

4545
/**

0 commit comments

Comments
 (0)