function DrupalBoot::bootstrap_phases

8.0.x DrupalBoot.php DrupalBoot::bootstrap_phases()
7.x DrupalBoot.php DrupalBoot::bootstrap_phases()
master DrupalBoot.php DrupalBoot::bootstrap_phases()

Bootstrap phases used with Drupal:

DRUSH_BOOTSTRAP_DRUSH = Only Drush. DRUSH_BOOTSTRAP_DRUPAL_ROOT = Find a valid Drupal root. DRUSH_BOOTSTRAP_DRUPAL_SITE = Find a valid Drupal site. DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION = Load the site's settings. DRUSH_BOOTSTRAP_DRUPAL_DATABASE = Initialize the database. DRUSH_BOOTSTRAP_DRUPAL_FULL = Initialize Drupal fully. DRUSH_BOOTSTRAP_DRUPAL_LOGIN = Log into Drupal with a valid user.

The value is the name of the method of the Boot class to execute when bootstrapping. Prior to bootstrapping, a "validate" method is called, if defined. The validate method name is the bootstrap method name with "_validate" appended.

Overrides Boot::bootstrap_phases

File

lib/Drush/Boot/DrupalBoot.php, line 34

Namespace

Drush\Boot

Class

DrupalBoot

Code

function bootstrap_phases() {
  return array(
    DRUSH_BOOTSTRAP_DRUSH => 'bootstrap_drush',
    DRUSH_BOOTSTRAP_DRUPAL_ROOT => 'bootstrap_drupal_root',
    DRUSH_BOOTSTRAP_DRUPAL_SITE => 'bootstrap_drupal_site',
    DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION => 'bootstrap_drupal_configuration',
    DRUSH_BOOTSTRAP_DRUPAL_DATABASE => 'bootstrap_drupal_database',
    DRUSH_BOOTSTRAP_DRUPAL_FULL => 'bootstrap_drupal_full',
    DRUSH_BOOTSTRAP_DRUPAL_LOGIN => 'bootstrap_drupal_login',
  );
}