src/CurlClient.php 1 location
|
@@ 37-39 (lines=3) @@
|
| 34 |
|
public function __construct(ContainerInterface $options){ |
| 35 |
|
parent::__construct($options); |
| 36 |
|
|
| 37 |
|
if(!isset($this->options->ca_info) || !is_file($this->options->ca_info)){ |
| 38 |
|
throw new HTTPClientException('invalid CA file'); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
$this->http = curl_init(); |
| 42 |
|
|
src/StreamClient.php 1 location
|
@@ 29-31 (lines=3) @@
|
| 26 |
|
public function __construct(ContainerInterface $options){ |
| 27 |
|
parent::__construct($options); |
| 28 |
|
|
| 29 |
|
if(!isset($this->options->ca_info) || !is_file($this->options->ca_info)){ |
| 30 |
|
throw new HTTPClientException('invalid CA file'); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** @inheritdoc */ |