1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Remove default client creation logic

This commit is contained in:
Stéphane HULARD 2016-04-04 18:59:08 +02:00
parent d2f1c0dab1
commit 3203897e05

View File

@ -143,13 +143,6 @@ class Api
throw new Exceptions\InvalidParameterException("Unknown provided endpoint"); throw new Exceptions\InvalidParameterException("Unknown provided endpoint");
} }
if (!isset($http_client)) {
$http_client = new Client([
'timeout' => 30,
'connect_timeout' => 5,
]);
}
$this->application_key = $application_key; $this->application_key = $application_key;
$this->endpoint = $this->endpoints[$api_endpoint]; $this->endpoint = $this->endpoints[$api_endpoint];
$this->application_secret = $application_secret; $this->application_secret = $application_secret;