public function BootstrapManager::bootstrap

master BootstrapManager.php public BootstrapManager::bootstrap()

Return the bootstrap object in use. This will be the latched bootstrap object if we have started bootstrapping; otherwise, it will be whichever bootstrap object is best for the selected root.

Return value

\Drush\Boot\Boot

File

lib/Drush/Boot/BootstrapManager.php, line 92

Namespace

Drush\Boot

Class

BootstrapManager

Code

public function bootstrap() {
  if ($this->bootstrap) {
    return $this->bootstrap;
  }
  return $this->selectBootstrapClass();
}