Yaffs site version 1.1
[yaffs-website] / vendor / drush / drush / lib / Drush / Boot / EmptyBoot.php
1 <?php
2
3 namespace Drush\Boot;
4
5 /**
6  * This is a do-nothing 'Boot' class that is used when there
7  * is no site at --root, or when no root is specified.
8  *
9  * The 'empty' boot must be careful to never change state,
10  * in case bootstrap code might later come along and set
11  * a site (e.g. in command completion).
12  */
13 class EmptyBoot extends BaseBoot {
14
15   function __construct() {
16   }
17
18   function valid_root($path) {
19     return FALSE;
20   }
21
22   function bootstrap_phases() {
23     return array(
24       DRUSH_BOOTSTRAP_DRUSH => '_drush_bootstrap_drush',
25     );
26   }
27
28   function bootstrap_init_phases() {
29     return array(DRUSH_BOOTSTRAP_DRUSH);
30   }
31
32   function command_defaults() {
33     return array(
34       // TODO: Historically, commands that do not explicitly specify
35       // their bootstrap level default to DRUSH_BOOTSTRAP_DRUPAL_LOGIN.
36       // This isn't right any more, but we can't just change this to
37       // DRUSH_BOOTSTRAP_DRUSH, or we will start running commands that
38       // needed a full bootstrap with no bootstrap, and that won't work.
39       // For now, we will continue to force this to 'login'.  Any command
40       // that does not declare 'bootstrap' is declaring that it is a Drupal
41       // command.
42       'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,
43     );
44   }
45 }