mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +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>");
|
||||
|
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user