You are here

function DrupalSystem::__construct in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/DrupalSystem/DrupalSystem.php \Drupal\xautoload\DrupalSystem\DrupalSystem::__construct()

File

src/DrupalSystem/DrupalSystem.php, line 7

Class

DrupalSystem

Namespace

Drupal\xautoload\DrupalSystem

Code

function __construct() {
  if (!function_exists('drupal_get_filename')) {
    throw new \Exception("This class works only within a working Drupal environment.");
  }
}