Version 1
[yaffs-website] / vendor / drush / drush / lib / Drush / Command / DrushOutputAdapter.php
diff --git a/vendor/drush/drush/lib/Drush/Command/DrushOutputAdapter.php b/vendor/drush/drush/lib/Drush/Command/DrushOutputAdapter.php
new file mode 100644 (file)
index 0000000..5d2101b
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drush\Command\DrushOutputAdapter.
+ */
+
+namespace Drush\Command;
+
+use Symfony\Component\Console\Output\Output;
+
+/**
+ * Adapter for Symfony Console OutputInterface
+ *
+ * This class can serve as a stand-in wherever an OutputInterface
+ * is needed.  It calls through to drush_print().
+ * This object should not be used directly; it exists only in
+ * the Drush 8.x branch.
+ */
+class DrushOutputAdapter extends Output {
+    protected function doWrite($message, $newline)
+    {
+        drush_print($message, 0, null, $newline);
+    }
+}