6 * This is a do-nothing 'Boot' class that is used when there
7 * is no site at --root, or when no root is specified.
9 * The 'empty' boot must be careful to never change state,
10 * in case bootstrap code might later come along and set
11 * a site (e.g. in command completion).
13 class EmptyBoot extends BaseBoot {
15 function __construct() {
18 function valid_root($path) {
22 function bootstrap_phases() {
24 DRUSH_BOOTSTRAP_DRUSH => '_drush_bootstrap_drush',
28 function bootstrap_init_phases() {
29 return array(DRUSH_BOOTSTRAP_DRUSH);
32 function command_defaults() {
34 // TODO: Historically, commands that do not explicitly specify
35 // their bootstrap level default to DRUSH_BOOTSTRAP_DRUPAL_LOGIN.
36 // This isn't right any more, but we can't just change this to
37 // DRUSH_BOOTSTRAP_DRUSH, or we will start running commands that
38 // needed a full bootstrap with no bootstrap, and that won't work.
39 // For now, we will continue to force this to 'login'. Any command
40 // that does not declare 'bootstrap' is declaring that it is a Drupal
42 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,