Skip to content

Commit 98a9374

Browse files
author
NASSAR Mohammed (DIGIT-EXT)
committed
Add proxy support for env configs on curl request
1 parent 4a8c4ee commit 98a9374

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)