Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / tests / resources / modules / d8 / woot / src / DependingService.php
diff --git a/vendor/drush/drush/tests/resources/modules/d8/woot/src/DependingService.php b/vendor/drush/drush/tests/resources/modules/d8/woot/src/DependingService.php
new file mode 100644 (file)
index 0000000..01a1bed
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drupal\woot;
+
+use Drupal\devel\DevelDumperManagerInterface;
+
+/**
+ * Test service that depends on another service.
+ *
+ * This is used to test whether it is possible to perform database updates if a
+ * new service is introduced in an existing module that depends on another
+ * service that is part of a new module that is being added in the update.
+ *
+ * Note that the service definition is missing from `woot.services.yml`. This is
+ * intentional, it is added as part of the update test.
+ *
+ * @see \Unish\UpdateDBTest::testUpdateModuleWithServiceDependency()
+ *
+ * @see https://www.drupal.org/project/drupal/issues/2863986
+ * @see https://github.com/drush-ops/drush/issues/3193
+ */
+class DependingService
+{
+
+    /**
+     * @var \Drupal\devel\DevelDumperManagerInterface
+     */
+    protected $develDumperManager;
+
+    public function __construct(DevelDumperManagerInterface $develDumperManager)
+    {
+        $this->develDumperManager = $develDumperManager;
+    }
+}