function DrupalBoot::bootstrap_do_drupal_site

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

Called by bootstrap_drupal_site to do the main work of the drush drupal site bootstrap.

2 calls to DrupalBoot::bootstrap_do_drupal_site()
DrupalBoot::bootstrap_drupal_site in lib/Drush/Boot/DrupalBoot.php
Initialize a site on the Drupal root.
DrupalBoot::bootstrap_drupal_site in lib/Drush/Boot/DrupalBoot.php
Initialize a site on the Drupal root.

File

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

Namespace

Drush\Boot

Class

DrupalBoot

Code

function bootstrap_do_drupal_site() {
  $drush_uri = drush_get_context('DRUSH_SELECTED_URI');
  drush_set_context('DRUSH_URI', $drush_uri);
  $site = drush_set_context('DRUSH_DRUPAL_SITE', drush_bootstrap_value('site'));
  $conf_path = drush_set_context('DRUSH_DRUPAL_SITE_ROOT', drush_bootstrap_value('conf_path'));

  drush_log(dt("Initialized Drupal site !site at !site_root", array('!site' => $site, '!site_root' => $conf_path)), LogLevel::BOOTSTRAP);

  _drush_preflight_global_options();
}