Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Boot / EmptyBoot.php
1 <?php
2
3 namespace Drush\Boot;
4
5 use Psr\Log\LoggerInterface;
6
7 /**
8  * This is a do-nothing 'Boot' class that is used when there
9  * is no site at --root, or when no root is specified.
10  *
11  * The 'empty' boot must be careful to never change state,
12  * in case bootstrap code might later come along and set
13  * a site (e.g. in command completion).
14  */
15 class EmptyBoot extends BaseBoot
16 {
17
18     public function validRoot($path)
19     {
20         return false;
21     }
22
23     public function bootstrapPhases()
24     {
25         return [
26         DRUSH_BOOTSTRAP_DRUSH => '_drush_bootstrap_drush',
27         ];
28     }
29
30     public function bootstrapInitPhases()
31     {
32         return [DRUSH_BOOTSTRAP_DRUSH];
33     }
34 }