We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0925f commit 2b28b87Copy full SHA for 2b28b87
src/ProxmoxVE.php
@@ -154,6 +154,11 @@ public static function request(
154
*/
155
public function __construct($credentials)
156
{
157
+ // Check if CURL is enabled
158
+ if (!function_exists('curl_version')) {
159
+ throw new RuntimeException('PHP5-CURL needs to be enabled!');
160
+ }
161
+
162
if ($credentials instanceof Credentials) {
163
$this->credentials = $credentials;
164
@@ -179,7 +184,6 @@ public function __construct($credentials)
179
184
throw new \InvalidArgumentException($errorMessage);
180
185
}
181
186
182
-
183
187
$this->apiUrl = $this->credentials->getApiUrl();
188
189
if (!$this->authToken = $this->credentials->login()) {
0 commit comments