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 2ce6da3 commit 71bbafaCopy full SHA for 71bbafa
src/ElasticEmailClient/ApiConfiguration.php
@@ -4,6 +4,8 @@
4
class ApiConfiguration
5
{
6
const AVAILABLE_REQUEST_METHODS = ['GET', 'POST'];
7
+ const API_KEY = 'apiKey';
8
+ const API_URL = 'apiUrl';
9
10
/**
11
* @var string
@@ -31,8 +33,8 @@ class ApiConfiguration
31
33
*/
32
34
public function __construct(array $params)
35
- $this->setApiKey($params['apiKey']);
- $this->setApiUrl($params['apiUrl']);
36
+ $this->setApiKey($params[self::API_KEY]);
37
+ $this->setApiUrl($params[self::API_URL]);
38
}
39
40
0 commit comments