Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Boot / EmptyBoot.php
diff --git a/vendor/drush/drush/src/Boot/EmptyBoot.php b/vendor/drush/drush/src/Boot/EmptyBoot.php
new file mode 100644 (file)
index 0000000..dfdcd3f
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drush\Boot;
+
+use Psr\Log\LoggerInterface;
+
+/**
+ * This is a do-nothing 'Boot' class that is used when there
+ * is no site at --root, or when no root is specified.
+ *
+ * The 'empty' boot must be careful to never change state,
+ * in case bootstrap code might later come along and set
+ * a site (e.g. in command completion).
+ */
+class EmptyBoot extends BaseBoot
+{
+
+    public function validRoot($path)
+    {
+        return false;
+    }
+
+    public function bootstrapPhases()
+    {
+        return [
+        DRUSH_BOOTSTRAP_DRUSH => '_drush_bootstrap_drush',
+        ];
+    }
+
+    public function bootstrapInitPhases()
+    {
+        return [DRUSH_BOOTSTRAP_DRUSH];
+    }
+}