You are here

function DrupalSystem::__construct in X Autoload 7.4

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

File

lib/DrupalSystem/DrupalSystem.php, line 7

Class

DrupalSystem

Namespace

Drupal\xautoload\DrupalSystem

Code

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