Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 37bd84f

Browse files
committed
Merge pull request #62 from fh/feature/curloptions
Add support for curloptions and headers to CouchDBCheck
2 parents 07b6a7a + 6265067 commit 37bd84f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ZendDiagnostics/Check/CouchDBCheck.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@ class CouchDBCheck extends GuzzleHttpService
1414
{
1515
/**
1616
* @param array $couchDbSettings
17+
* @param array $headers An array of headers used to create the request
18+
* @param array $options An array of guzzle options used to create the request
1719
*
1820
* @return self
1921
*/
20-
public function __construct(array $couchDbSettings)
22+
public function __construct(array $couchDbSettings, array $headers = array(), array $options = array())
2123
{
2224
if (false === array_key_exists('url', $couchDbSettings)) {
2325
$couchDbUrl = $this->createUrlFromParameters($couchDbSettings);
2426
} else {
2527
$couchDbUrl = $couchDbSettings['url'];
2628
}
2729

28-
parent::__construct($couchDbUrl);
30+
parent::__construct($couchDbUrl, $headers, $options);
2931
}
3032

3133
/**

0 commit comments

Comments
 (0)