We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49d86fd commit c3095caCopy full SHA for c3095ca
lib/Gitlab/Client.php
@@ -73,9 +73,14 @@ class Client
73
*
74
* @param string $baseUrl
75
* @param null|ClientInterface $httpClient Buzz client
76
+ * @param array $options
77
*/
- public function __construct($baseUrl, ClientInterface $httpClient = null)
78
+ public function __construct($baseUrl, ClientInterface $httpClient = null, array $options = array())
79
{
80
+ foreach ($options as $name => $value) {
81
+ $this->setOption($name, $value);
82
+ }
83
+
84
$httpClient = $httpClient ?: new Curl();
85
$httpClient->setTimeout($this->options['timeout']);
86
$httpClient->setVerifyPeer(false);
0 commit comments