constant DRUSH_BOOTSTRAP_DRUPAL_SITE
- 8.0.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
- 6.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
- 7.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
- 3.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
- 4.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
- 5.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_SITE
- 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/
bootstrap.inc, line 58
Code
define('DRUSH_BOOTSTRAP_DRUPAL_SITE', 2)