Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drupal-composer / drupal-scaffold / src / DrupalScaffoldCommand.php
diff --git a/vendor/drupal-composer/drupal-scaffold/src/DrupalScaffoldCommand.php b/vendor/drupal-composer/drupal-scaffold/src/DrupalScaffoldCommand.php
new file mode 100644 (file)
index 0000000..485a2f5
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+namespace DrupalComposer\DrupalScaffold;
+
+use Composer\Command\BaseCommand;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+/**
+ * The "drupal:scaffold" command class.
+ *
+ * Downloads scaffold files and generates the autoload.php file.
+ */
+class DrupalScaffoldCommand extends BaseCommand {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function configure() {
+    parent::configure();
+    $this
+      ->setName('drupal:scaffold')
+      ->setDescription('Update the Drupal scaffold files.');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function execute(InputInterface $input, OutputInterface $output) {
+    $handler = new Handler($this->getComposer(), $this->getIO());
+    $handler->downloadScaffold();
+    // Generate the autoload.php file after generating the scaffold files.
+    $handler->generateAutoload();
+  }
+
+}