JiraRestApi\Configuration\DotEnvConfiguration::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $path = '.' )
$path string
    public function __construct($path = '.')
    {
        $dotenv = new \Dotenv\Dotenv($path);
        $dotenv->load();
        $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
        $this->jiraHost = $this->env('JIRA_HOST');
        $this->jiraUser = $this->env('JIRA_USER');
        $this->jiraPassword = $this->env('JIRA_PASS');
        $this->jiraLogFile = $this->env('JIRA_LOG_FILE', 'jira-rest-client.log');
        $this->jiraLogLevel = $this->env('JIRA_LOG_LEVEL', 'WARNING');
        $this->curlOptSslVerifyHost = $this->env('CURLOPT_SSL_VERIFYHOST', false);
        $this->curlOptSslVerifyPeer = $this->env('CURLOPT_SSL_VERIFYPEER', false);
        $this->curlOptVerbose = $this->env('CURLOPT_VERBOSE', false);
    }