Skip to content

Commit cfe392a

Browse files
authored
Merge pull request #6 from baileyherbert/master
Allow customization of the Guzzle client
2 parents 04459b9 + 0d5f27b commit cfe392a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/InsightsCaller.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ class InsightsCaller
3131
*
3232
* @param string $apiKey
3333
* @param string $locale
34+
* @param array $config
3435
*/
35-
public function __construct($apiKey, $locale = 'en')
36+
public function __construct($apiKey, $locale = 'en', $config = array())
3637
{
37-
$this->client = new Client();
38+
$this->client = new Client($config);
3839
$this->apiKey = $apiKey;
3940
$this->locale = $locale;
4041
$this->captureScreenshot = true;

0 commit comments

Comments
 (0)