Skip to content

Commit c978828

Browse files
authored
Merge pull request #18 from halnique/hotfix/dotenv_path
fix dotenv file path
2 parents df9310d + 28fc800 commit c978828

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/WebAPI/Client.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ public function __construct(Contracts\Endpoints\Client $client)
1515
{
1616
$this->client = $client;
1717

18-
$dotEnv = Dotenv::create(__DIR__ . '/../../');
18+
$dotEnv = Dotenv::create([
19+
__DIR__ . '/../../../../../',
20+
__DIR__ . '/../../',
21+
]);
1922
$dotEnv->load();
2023
}
2124

@@ -28,4 +31,4 @@ public function call(HttpMethod $httpMethod, string $method, array $params = [])
2831
{
2932
return (Endpoints\Api::of($this->client, $httpMethod, $method, $params))->call();
3033
}
31-
}
34+
}

0 commit comments

Comments
 (0)