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 / Service / Middleware.php
index c9e2716cd539ed74a36ab2980d7785f342257e79..2e5f9f3fa6ee15cbda41bbf4901373b3e13028c9 100644 (file)
@@ -22,7 +22,7 @@ class Middleware extends BaseGenerator {
   protected function interact(InputInterface $input, OutputInterface $output) {
     $questions = Utils::defaultQuestions();
     $vars = &$this->collectVars($input, $output, $questions);
-    $vars['class'] = Utils::camelize($vars['name'] . 'Middleware');
+    $vars['class'] = Utils::camelize($vars['name']) . 'Middleware';
 
     $this->addFile()
       ->path('src/{class}.php')