Skip to content

Commit aa4413c

Browse files
authored
Merge pull request #2 from msnassar/proxy-config
Add proxy support for env configs on curl request
2 parents 3198f4c + 98a9374 commit aa4413c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Configuration/DotEnvConfiguration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public function __construct($path = '.')
4141
$this->curlOptSslVerifyPeer = $this->env('CURLOPT_SSL_VERIFYPEER', false);
4242
$this->curlOptUserAgent = $this->env('CURLOPT_USERAGENT', $this->getDefaultUserAgentString());
4343
$this->curlOptVerbose = $this->env('CURLOPT_VERBOSE', false);
44+
$this->proxyServer = $this->env('PROXY_SERVER');
45+
$this->proxyPort = $this->env('PROXY_PORT');
46+
$this->proxyUser = $this->env('PROXY_USER');
47+
$this->proxyPassword = $this->env('PROXY_PASSWORD');
4448
}
4549

4650
/**

0 commit comments

Comments
 (0)