Skip to content

Commit

Permalink
Ensure SPAPI_ENDPOINT is loaded properly from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers committed Feb 16, 2021
1 parent ff96e3e commit facc66f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,15 @@ class Configuration
*/
public function __construct(?array $lwaAuthInfo = null, ?string $host = null)
{
loadDotenv();

$this->lwaAuthInfo = $lwaAuthInfo;
$this->tempFolderPath = sys_get_temp_dir();

if ($host !== null) {
$this->host = $host;
} else {
$this->host = $_ENV["SPAPI_ENDPOINT"];
}

if ($this->lwaAuthInfo !== null) {
Expand Down

0 comments on commit facc66f

Please sign in to comment.