diff --git a/lib/Alchemy/Phrasea/Command/NetworkProxiesTestCommand.php b/lib/Alchemy/Phrasea/Command/NetworkProxiesTestCommand.php index 32272dae27..d9a9624db9 100644 --- a/lib/Alchemy/Phrasea/Command/NetworkProxiesTestCommand.php +++ b/lib/Alchemy/Phrasea/Command/NetworkProxiesTestCommand.php @@ -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("Test outgoing connection with proxy " . $httpProxy ." success with status code : " . $response->getStatusCode() . " "); } catch(\Exception $e) { $output->writeln("Outgoing connection error with proxy " . $httpProxy . " , " . $e->getMessage() . ""); diff --git a/lib/Alchemy/Phrasea/WorkerManager/Worker/AssetsIngestWorker.php b/lib/Alchemy/Phrasea/WorkerManager/Worker/AssetsIngestWorker.php index fa45c16676..efa2761bcc 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Worker/AssetsIngestWorker.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Worker/AssetsIngestWorker.php @@ -44,7 +44,7 @@ class AssetsIngestWorker implements WorkerInterface // add proxy in each request if defined in configuration if ($proxyConfig->getHttpProxyConfiguration() != null) { - array_merge($clientOptions, ['proxy' => $proxyConfig->getHttpProxyConfiguration()]); + $clientOptions = array_merge($clientOptions, ['proxy' => $proxyConfig->getHttpProxyConfiguration()]); } $uploaderClient = new Client($clientOptions); diff --git a/lib/Alchemy/Phrasea/WorkerManager/Worker/CreateRecordWorker.php b/lib/Alchemy/Phrasea/WorkerManager/Worker/CreateRecordWorker.php index b973175af6..fc3bddafd1 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Worker/CreateRecordWorker.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Worker/CreateRecordWorker.php @@ -64,7 +64,7 @@ class CreateRecordWorker implements WorkerInterface // add proxy in each request if defined in configuration if ($proxyConfig->getHttpProxyConfiguration() != null) { - array_merge($clientOptions, ['proxy' => $proxyConfig->getHttpProxyConfiguration()]); + $clientOptions = array_merge($clientOptions, ['proxy' => $proxyConfig->getHttpProxyConfiguration()]); } $uploaderClient = new Client($clientOptions); @@ -96,7 +96,7 @@ class CreateRecordWorker implements WorkerInterface $clientOptions = []; // add proxy in each request if defined in configuration if ($proxyConfig->getHttpProxyConfiguration() != null) { - array_merge($clientOptions, ['proxy' => $proxyConfig->getHttpProxyConfiguration()]); + $clientOptions = array_merge($clientOptions, ['proxy' => $proxyConfig->getHttpProxyConfiguration()]); } //download the asset