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

6 calls to drush_has_boostrapped()
drush_cache_clear_both in commands/core/
Clear caches internal to Drush core and Drupal.
drush_cache_command_clear in commands/core/
Command callback for drush cache-clear.
drush_command_belongs_to_disabled_module in ./drush.php
Check if the given command belongs to a disabled module
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.
drush_sql_sync in commands/sql/

... See full list


includes/, line 219
Drush bootstrapping code.


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

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