function EmptyBoot::bootstrap_init_phases

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

List of bootstrap phases where Drush should stop and look for commandfiles.

This allows us to bootstrap to a minimum neccesary to find commands.

Once a command is found, Drush will ensure a bootstrap to the phase declared by the command.

Return value

array of PHASE indexes.

Overrides Boot::bootstrap_init_phases

File

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

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 bootstrap_init_phases() {
  return array(DRUSH_BOOTSTRAP_DRUSH);
}