diff --git a/src/Client.php b/src/Client.php index 7a67a1d..2eccf09 100644 --- a/src/Client.php +++ b/src/Client.php @@ -34,10 +34,10 @@ public function __construct(array $config = []) if (isset($this->config['http_client'])) { $this->http_client = $this->config['http_client']; + unset($this->config['http_client']); } else { $this->http_client = new \GuzzleHttp\Client([ 'base_uri' => $this->getBaseURL(), - 'curl' => $this->getCurlOptions() ]); } } @@ -230,19 +230,6 @@ public function getBaseURL() : string return $this->getApiURL().$this->getApiVersion().'/'; } - /** - * returns an array with curl options - * For example: - * [CURLOPT_SSL_VERIFYPEER => FALSE] // ignores SSL certificate issues - * @see https://www.php.net/manual/en/function.curl-setopt.php - * @param none - * @return array - */ - public function getCurlOptions() - { - return []; - } - /** * Function gets the Api url * @return string Returns a string containing the api url