function drush_get_bootstrap_object

8.0.x drush_get_bootstrap_object()
7.x drush_get_bootstrap_object()

Get the appropriate bootstrap object. We'll search for a new bootstrap object every time someone asks for one until we start bootstrapping; then we'll returned the same cached one every time.

7 calls to drush_get_bootstrap_object()
drush_bootstrap in includes/
Bootstrap Drush to the desired phase.
drush_bootstrap_validate in includes/
Validate whether a bootstrap phase can be reached.
drush_command_defaults in includes/
drush_main in ./drush.php
The main Drush function.
_core_site_status_table in commands/core/

... See full list


includes/, line 213


function drush_get_bootstrap_object() {
  $bootstrap = drush_get_context('DRUSH_BOOTSTRAP_OBJECT', FALSE);
  if (!$bootstrap) {
    $bootstrap = drush_select_bootstrap_class();
  return $bootstrap;