Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Tasks.php
diff --git a/vendor/consolidation/robo/src/Tasks.php b/vendor/consolidation/robo/src/Tasks.php
new file mode 100644 (file)
index 0000000..2822d7d
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+namespace Robo;
+
+use Robo\Common\IO;
+use Robo\Contract\IOAwareInterface;
+use Robo\Contract\BuilderAwareInterface;
+use League\Container\ContainerAwareInterface;
+use League\Container\ContainerAwareTrait;
+
+class Tasks implements BuilderAwareInterface, IOAwareInterface, ContainerAwareInterface
+{
+    use ContainerAwareTrait;
+    use LoadAllTasks; // uses TaskAccessor, which uses BuilderAwareTrait
+    use IO;
+
+    /**
+     * @param bool $stopOnFail
+     */
+    protected function stopOnFail($stopOnFail = true)
+    {
+        Result::$stopOnFail = $stopOnFail;
+    }
+}