mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
fix
This commit is contained in:
@@ -35,13 +35,12 @@ class NetworkProxiesTestCommand extends Command
|
||||
// test http-proxy
|
||||
if ($proxyConfig->getHttpProxyConfiguration() != null) {
|
||||
$httpProxy = $proxyConfig->getHttpProxyConfiguration();
|
||||
array_merge($clientOptions, ['proxy' => $httpProxy]);
|
||||
$clientOptions = array_merge($clientOptions, ['proxy' => $httpProxy]);
|
||||
|
||||
$client = new Client($clientOptions);
|
||||
|
||||
try {
|
||||
$response = $client->get($urlTest);
|
||||
|
||||
$output->writeln("<info>Test outgoing connection with proxy " . $httpProxy ." success with status code : " . $response->getStatusCode() . " </info>");
|
||||
} catch(\Exception $e) {
|
||||
$output->writeln("<comment>Outgoing connection error with proxy " . $httpProxy . " , " . $e->getMessage() . "</comment>");
|
||||
|
Reference in New Issue
Block a user