Skip to content

Commit 48571a8

Browse files
committed
Allow usage of custom guzzle clients
1 parent 6fc0c9f commit 48571a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Models/Model.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace LKDev\HetznerCloud\Models;
44

5+
use GuzzleHttp\Client;
56
use LKDev\HetznerCloud\Clients\GuzzleClient;
67
use LKDev\HetznerCloud\HetznerAPIClient;
78

@@ -20,7 +21,7 @@ abstract class Model
2021
* Model constructor.
2122
* @param GuzzleClient $httpClient
2223
*/
23-
public function __construct(GuzzleClient $httpClient = null)
24+
public function __construct(Client $httpClient = null)
2425
{
2526
$this->httpClient = $httpClient == null ? HetznerAPIClient::$instance->getHttpClient() : $httpClient;
2627
}
@@ -32,4 +33,4 @@ public function __construct(GuzzleClient $httpClient = null)
3233
public static function parse($input)
3334
{
3435
}
35-
}
36+
}

0 commit comments

Comments
 (0)