src/Graviton/ProxyBundle/Adapter/Guzzle/GuzzleAdapter.php 1 location
|
@@ 84-86 (lines=3) @@
|
| 81 |
|
private function applyOptions($options) |
| 82 |
|
{ |
| 83 |
|
$options = array('curl' => []); |
| 84 |
|
foreach ($options as $option => $value) { |
| 85 |
|
$options['curl'][constant('CURLOPT_' . strtoupper($option))] = $value; |
| 86 |
|
} |
| 87 |
|
$options['verify'] = __DIR__ . '/../../Resources/cert/cacert.pem'; |
| 88 |
|
|
| 89 |
|
return $options; |
src/Graviton/ProxyBundle/Definition/Loader/HttpLoader.php 1 location
|
@@ 168-171 (lines=4) @@
|
| 165 |
|
protected function applyCurlOptions($request) |
| 166 |
|
{ |
| 167 |
|
$curl = $request->getCurlOptions(); |
| 168 |
|
foreach ($this->curlOptions as $option => $value) { |
| 169 |
|
$option = 'CURLOPT_'.strtoupper($option); |
| 170 |
|
$curl->set(constant($option), $value); |
| 171 |
|
} |
| 172 |
|
$curl->set(constant('CURLOPT_CAINFO'), __DIR__.'/../../Resources/cert/cacert.pem'); |
| 173 |
|
} |
| 174 |
|
|