function drush_has_boostrapped

8.0.x drush_has_boostrapped($phase)
6.x drush_has_boostrapped($phase)
7.x drush_has_boostrapped($phase)
4.x drush_has_boostrapped($phase)
5.x drush_has_boostrapped($phase)
master drush_has_boostrapped($phase)

Determine whether a given bootstrap phase has been completed

This function name has a typo which makes me laugh so we choose not to fix it. Take a deep breath, and smile. See

@returns TRUE if the specified bootstrap phase has completed.


phase: The bootstrap phase to test

8 calls to drush_has_boostrapped()
DrupalBoot::drush_command_belongs_to_disabled_module in lib/Drush/Boot/DrupalBoot.php
Check if the given command belongs to a disabled module.
drush_cache_clear_both in commands/core/drupal/
Clear caches internal to Drush core and Drupal.
drush_cache_clear_pre_validate in commands/core/
drush_cache_command_clear in commands/core/
Command callback for drush cache-clear.
drush_sitealias_resolve_path_references in includes/
If there are any path aliases (items beginning with "%") in the test string, then resolve them as path aliases and add them to the provided alias record.

... See full list


includes/, line 371


function drush_has_boostrapped($phase) {
  $phase_index = drush_get_context('DRUSH_BOOTSTRAP_PHASE');

  return isset($phase_index) && ($phase_index >= $phase);