Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / src / bootstrap.php
diff --git a/vendor/chi-teck/drupal-code-generator/src/bootstrap.php b/vendor/chi-teck/drupal-code-generator/src/bootstrap.php
new file mode 100644 (file)
index 0000000..6020690
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * @file
+ * Globals.
+ */
+
+use DrupalCodeGenerator\ApplicationFactory;
+
+/**
+ * DCG root.
+ *
+ * @deprecated
+ *   Use DrupalCodeGenerator\ApplicationFactory::getRoot
+ */
+define('DCG_ROOT', dirname(__DIR__));
+
+/**
+ * Creates an application.
+ *
+ * @return \Symfony\Component\Console\Application
+ *   The initialized console application.
+ *
+ * @deprecated
+ *   Use DrupalCodeGenerator\ApplicationFactory::create
+ *
+ * @codeCoverageIgnore
+ */
+function dcg_create_application() {
+  return ApplicationFactory::create();
+}