Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Common / InflectionTrait.php
diff --git a/vendor/consolidation/robo/src/Common/InflectionTrait.php b/vendor/consolidation/robo/src/Common/InflectionTrait.php
new file mode 100644 (file)
index 0000000..8bc4e83
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+namespace Robo\Common;
+
+use Robo\Contract\InflectionInterface;
+
+trait InflectionTrait
+{
+    /**
+     * Ask the provided parent class to inject all of the dependencies
+     * that it has and we need.
+     *
+     * @param \Robo\Contract\InflectionInterface $parent
+     *
+     * @return $this
+     */
+    public function inflect(InflectionInterface $parent)
+    {
+        $parent->injectDependencies($this);
+        return $this;
+    }
+}