You are here

public static function MoAuthUtilities::isCurlInstalled in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 8.2 src/MoAuthUtilities.php \Drupal\miniorange_2fa\MoAuthUtilities::isCurlInstalled()
1 call to MoAuthUtilities::isCurlInstalled()
MoAuthUtilities::callService in src/MoAuthUtilities.php

File

src/MoAuthUtilities.php, line 138
This file is part of miniOrange 2FA module.

Class

MoAuthUtilities

Namespace

Drupal\miniorange_2fa

Code

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