You are here

public static function Utilities::isCurlInstalled in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8

5 calls to Utilities::isCurlInstalled()
MiniorangeOAuthClientCustomer::checkCustomer in src/MiniorangeOAuthClientCustomer.php
Check if customer exists.
MiniorangeOAuthClientCustomer::createCustomer in src/MiniorangeOAuthClientCustomer.php
Create Customer.
MiniorangeOAuthClientCustomer::getCustomerKeys in src/MiniorangeOAuthClientCustomer.php
Get Customer Keys.
MiniorangeOAuthClientCustomer::sendOtp in src/MiniorangeOAuthClientCustomer.php
Send OTP.
MiniorangeOAuthClientCustomer::validateOtp in src/MiniorangeOAuthClientCustomer.php
Validate OTP.

File

src/Utilities.php, line 236

Class

Utilities

Namespace

Drupal\miniorange_oauth_client

Code

public static function isCurlInstalled() {
  if (in_array('curl', get_loaded_extensions())) {
    return 1;
  }
  else {
    return 0;
  }
}