File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,6 @@ public function __construct($path = '.')
1818 {
1919 $ this ->loadDotEnv ($ path );
2020
21- /*
22- // support for dotenv 1.x and 2.x. see also https://github.com/lesstif/php-jira-rest-client/issues/102
23- if (class_exists('\Dotenv\Dotenv')) {
24-
25- // check dotenv v3 or v2
26- //create
27- //Dotenv::create($app->environmentPath(), $app->environmentFile())->safeLoad();
28- $dotenv = new \Dotenv\Dotenv($path);
29-
30- $dotenv->load();
31- $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
32- } elseif (class_exists('\Dotenv')) {
33- \Dotenv::load($path);
34- \Dotenv::required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
35- } else {
36- throw new JiraException('can not load PHP dotenv class.!');
37- }
38- */
39-
4021 $ this ->jiraHost = $ this ->env ('JIRA_HOST ' );
4122 $ this ->jiraUser = $ this ->env ('JIRA_USER ' );
4223 $ this ->jiraPassword = $ this ->env ('JIRA_PASS ' );
You can’t perform that action at this time.
0 commit comments