Skip to content

Commit

Permalink
downgraded to a phpdotenv version 1.1 for lumen interoperabilty
Browse files Browse the repository at this point in the history
  • Loading branch information
lesstif committed Jun 25, 2015
1 parent 24a1fc2 commit 123ef82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=5.4.0",
"netresearch/jsonmapper": "~0.5",
"monolog/monolog": "~1.12",
"vlucas/phpdotenv" : "~2.0"
"vlucas/phpdotenv" : "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
Expand Down
8 changes: 5 additions & 3 deletions src/JiraClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class JIRAException extends \Exception
use Monolog\Logger as Logger;
use Monolog\Handler\StreamHandler;

use Dotenv;

/**
* interact jira server with REST API.
*/
Expand Down Expand Up @@ -82,10 +84,10 @@ protected function filterNullVariable($haystack)

public function __construct()
{
$dotenv = new \Dotenv\Dotenv('.');
$dotenv->load();
$dotenv = Dotenv::load('.');

$dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
// not available in dotenv 1.1
// $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);

$this->json_mapper = new \JsonMapper();
$this->json_mapper->bExceptionOnUndefinedProperty = true;
Expand Down

0 comments on commit 123ef82

Please sign in to comment.