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 71bbafa commit 478eb73Copy full SHA for 478eb73
src/ElasticEmailClient/ApiConfiguration.php
@@ -31,10 +31,14 @@ class ApiConfiguration
31
* ApiConfiguration constructor.
32
* @param array $params
33
*/
34
- public function __construct(array $params)
+ public function __construct(array $params = [])
35
{
36
- $this->setApiKey($params[self::API_KEY]);
37
- $this->setApiUrl($params[self::API_URL]);
+ if (isset($params[self::API_KEY])) {
+ $this->setApiKey($params[self::API_KEY]);
38
+ }
39
+ if (isset($params[self::API_URL])) {
40
+ $this->setApiUrl($params[self::API_URL]);
41
42
}
43
44
/**
0 commit comments