function DrupalBoot7::bootstrap_drupal_configuration

8.0.x DrupalBoot7.php DrupalBoot7::bootstrap_drupal_configuration()
7.x DrupalBoot7.php DrupalBoot7::bootstrap_drupal_configuration()
master DrupalBoot7.php DrupalBoot7::bootstrap_drupal_configuration()

Initialize and load the Drupal configuration files.

We process and store a normalized set of database credentials from the loaded configuration file, so we can validate them and access them easily in the future.

Also override Drupal variables as per --variables option.

Overrides DrupalBoot::bootstrap_drupal_configuration

File

lib/Drush/Boot/DrupalBoot7.php, line 61

Namespace

Drush\Boot

Class

DrupalBoot7

Code

function bootstrap_drupal_configuration() {
  drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION);

  // Unset drupal error handler and restore drush's one.
  restore_error_handler();

  parent::bootstrap_drupal_configuration();
}