function DrupalBoot::bootstrap_init_phases

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

List of bootstrap phases where Drush should stop and look for commandfiles.

For Drupal, we try at these bootstrap phases:

  • Drush preflight: to find commandfiles in any system location, out of a Drupal installation.
  • Drupal root: to find commandfiles based on Drupal core version.
  • Drupal full: to find commandfiles defined within a Drupal directory.

Once a command is found, Drush will ensure a bootstrap to the phase declared by the command.

Return value

array of PHASE indexes.

Overrides Boot::bootstrap_init_phases

File

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

Namespace

Drush\Boot

Class

DrupalBoot

Code

function bootstrap_init_phases() {
  return array(DRUSH_BOOTSTRAP_DRUSH, DRUSH_BOOTSTRAP_DRUPAL_ROOT, DRUSH_BOOTSTRAP_DRUPAL_FULL);
}