File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,6 @@ class BaseJsonRpcClient {
22
22
*/
23
23
public $ UseObjectsInResults = false ;
24
24
25
- /**
26
- * Guzzle Client Options
27
- * @var array
28
- */
29
- public $ ClientOptions = [];
30
-
31
25
/**
32
26
* Current Request id
33
27
* @var int
@@ -68,9 +62,9 @@ class BaseJsonRpcClient {
68
62
* Create New JsonRpc client
69
63
* @param string $serverUrl
70
64
*/
71
- public function __construct ( string $ serverUrl ) {
65
+ public function __construct ( string $ serverUrl, array $ clientOptions = [] ) {
72
66
$ opts = [ RequestOptions::TIMEOUT => 2.0 ];
73
- $ opts = array_merge ( $ opts , $ this -> ClientOptions );
67
+ $ opts = array_merge ( $ opts , $ clientOptions );
74
68
$ this ->client = new Client ( $ opts );
75
69
$ this ->serverUrl = $ serverUrl ;
76
70
}
You can’t perform that action at this time.
0 commit comments