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 917b6ca commit 2aea25aCopy full SHA for 2aea25a
src/Configuration/DotEnvConfiguration.php
@@ -7,8 +7,6 @@
7
*/
8
namespace JiraRestApi\Configuration;
9
10
-use Dotenv;
11
-
12
/**
13
* Class DotEnvConfiguration
14
*
@@ -21,10 +19,9 @@ class DotEnvConfiguration extends AbstractConfiguration
21
19
22
20
public function __construct($path = '.')
23
{
24
- Dotenv::load($path);
25
26
- // not available in dotenv 1.1
27
- // $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
+ $dotenv = new \Dotenv\Dotenv($path);
+ $dotenv->load();
+ $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
28
29
$this->jiraHost = $this->env('JIRA_HOST');
30
$this->jiraUser = $this->env('JIRA_USER');
0 commit comments