function EmptyBoot::command_defaults

8.0.x EmptyBoot.php EmptyBoot::command_defaults()
7.x EmptyBoot.php EmptyBoot::command_defaults()
master EmptyBoot.php EmptyBoot::command_defaults()

Return an array of default values that should be added to every command (e.g. values needed in enforce_requirements(), etc.)

Overrides BaseBoot::command_defaults

File

lib/Drush/Boot/EmptyBoot.php, line 32

Namespace

Drush\Boot

Class

EmptyBoot
This is a do-nothing 'Boot' class that is used when there is no site at --root, or when no root is specified.

Code

function command_defaults() {
  return array(
    
    // TODO: Historically, commands that do not explicitly specify
    // their bootstrap level default to DRUSH_BOOTSTRAP_DRUPAL_LOGIN.
    // This isn't right any more, but we can't just change this to
    // DRUSH_BOOTSTRAP_DRUSH, or we will start running commands that
    // needed a full bootstrap with no bootstrap, and that won't work.
    // For now, we will continue to force this to 'login'.  Any command
    // that does not declare 'bootstrap' is declaring that it is a Drupal
    // command.
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,
  );
}