X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Flib%2FDrush%2FBoot%2FBoot.php;fp=vendor%2Fdrush%2Fdrush%2Flib%2FDrush%2FBoot%2FBoot.php;h=9bad8e7ade373a9a3feacbd7119db54daf8922a9;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drush/drush/lib/Drush/Boot/Boot.php b/vendor/drush/drush/lib/Drush/Boot/Boot.php new file mode 100644 index 000000000..9bad8e7ad --- /dev/null +++ b/vendor/drush/drush/lib/Drush/Boot/Boot.php @@ -0,0 +1,109 @@ + method name. + */ + function bootstrap_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 array of PHASE indexes. + */ + function bootstrap_init_phases(); + + /** + * Return an array of default values that should be added + * to every command (e.g. values needed in enforce_requirements(), + * etc.) + */ + function command_defaults(); + + /** + * Called by Drush when a command is selected, but + * before it runs. This gives the Boot class an + * opportunity to determine if any minimum + * requirements (e.g. minimum Drupal version) declared + * in the command have been met. + * + * @return TRUE if command is valid. $command['bootstrap_errors'] + * should be populated with an array of error messages if + * the command is not valid. + */ + function enforce_requirement(&$command); + + /** + * Called by Drush if a command is not found, or if the + * command was found, but did not meet requirements. + * + * The implementation in BaseBoot should be sufficient + * for most cases, so this method typically will not need + * to be overridden. + */ + function report_command_error($command); + + /** + * This method is called during the shutdown of drush. + * + * @return void + */ + public function terminate(); +}