Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Boot / AutoloaderAwareTrait.php
diff --git a/vendor/drush/drush/src/Boot/AutoloaderAwareTrait.php b/vendor/drush/drush/src/Boot/AutoloaderAwareTrait.php
new file mode 100644 (file)
index 0000000..a96c0e0
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+namespace Drush\Boot;
+
+trait AutoloaderAwareTrait
+{
+    protected $loader;
+
+    public function setAutoloader($loader)
+    {
+        $this->loader = $loader;
+    }
+
+    public function autoloader()
+    {
+        return $this->loader;
+    }
+
+    public function hasAutoloader()
+    {
+        return isset($this->loader);
+    }
+}