COM-40 :: General refactoring/fixes.

This commit is contained in:
Junade Ali
2017-09-04 21:14:34 +01:00
parent 53cbd9d578
commit 7d0c0c86dc
6 changed files with 44 additions and 52 deletions

View File

@@ -19,8 +19,12 @@ class Guzzle implements Adapter
/**
* @inheritDoc
*/
public function __construct(Auth $auth, String $baseURI = "https://api.cloudflare.com/client/v4/")
public function __construct(Auth $auth, String $baseURI = null)
{
if ($baseURI === null) {
$baseURI = "https://api.cloudflare.com/client/v4/";
}
$headers = $auth->getHeaders();
$this->client = new Client([