constant DRUSH_BOOTSTRAP_DRUPAL_SITE

  1. 8.0.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
  2. 6.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
  3. 7.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
  4. 3.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
  5. 4.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
  6. 5.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
  7. master includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE

Set up a Drupal site directory and the correct environment variables to allow Drupal to find the configuration file.

If no site is specified with the -l / --uri options, Drush will assume the site is 'default', which mimics Drupal's behaviour.

If you want to avoid this behaviour, it is recommended that you use the DRUSH_BOOTSTRAP_DRUPAL_ROOT bootstrap phase instead.

Any code that needs to modify or interact with a specific Drupal site's settings.php file should bootstrap to this phase.

File

includes/environment.inc, line 50
Functions used by drush to query the environment and setting the current configuration.

Code

define('DRUSH_BOOTSTRAP_DRUPAL_SITE', 2)