Version 1
[yaffs-website] / vendor / drush / drush / lib / Drush / Command / ServiceCommandlist.php
diff --git a/vendor/drush/drush/lib/Drush/Command/ServiceCommandlist.php b/vendor/drush/drush/lib/Drush/Command/ServiceCommandlist.php
new file mode 100644 (file)
index 0000000..b0bcfc3
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+namespace Drush\Command;
+
+use Drush\Log\LogLevel;
+
+/**
+ * Keep a list of all of the service commands that we can find when the
+ * Drupal Kernel is booted.
+ */
+class ServiceCommandlist {
+    protected $commandList = [];
+
+    public function addCommandReference($command)
+    {
+        drush_log(dt("add command reference"), LogLevel::DEBUG);
+        $this->commandList[] = $command;
+    }
+
+    public function getCommandList()
+    {
+        return $this->commandList;
+    }
+}