Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / src / Command / Drupal_8 / Module / PluginManager.php
diff --git a/vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Module/PluginManager.php b/vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Module/PluginManager.php
deleted file mode 100644 (file)
index c452ab4..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-namespace DrupalCodeGenerator\Command\Drupal_8\Module;
-
-use DrupalCodeGenerator\Command\BaseGenerator;
-use DrupalCodeGenerator\Utils;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\Question;
-
-/**
- * Implements d8:module:plugin-manager command.
- */
-class PluginManager extends BaseGenerator {
-
-  protected $name = 'd8:module:plugin-manager';
-  protected $description = 'Generates plugin-manager module';
-  protected $alias = 'plugin-manager';
-  protected $destination = 'modules';
-
-  /**
-   * {@inheritdoc}
-   */
-  protected function interact(InputInterface $input, OutputInterface $output) {
-    $questions = Utils::defaultQuestions();
-    $questions['description'] = new Question('Description', 'Module description.');
-    $questions['package'] = new Question('Package', 'Custom');
-    $questions['dependencies'] = new Question('Dependencies (comma separated)');
-
-    $vars = &$this->collectVars($input, $output, $questions);
-
-    if ($vars['dependencies']) {
-      $vars['dependencies'] = array_map('trim', explode(',', strtolower($vars['dependencies'])));
-    }
-    $vars['class_prefix'] = Utils::camelize($vars['machine_name']);
-
-    $templates = [
-      'model.drush.inc.twig',
-      'model.info.yml.twig',
-      'model.services.yml.twig',
-      'src/Annotation/Model.php.twig',
-      'src/ModelInterface.php.twig',
-      'src/ModelPluginBase.php.twig',
-      'src/ModelPluginManager.php.twig',
-      'src/Plugin/Model/Example.php.twig',
-    ];
-
-    $templates_path = 'd8/module/plugin-manager/';
-
-    $path_placeholders = ['model', 'Model', '.twig'];
-    $path_replacements = [$vars['machine_name'], $vars['class_prefix'], ''];
-    foreach ($templates as $template) {
-      $this->addFile()
-        ->path('{machine_name}/' . str_replace($path_placeholders, $path_replacements, $template))
-        ->template($templates_path . $template);
-    }
-  }
-
-}