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 / EventSubscriber.php
index 03ae74e8fdccf5971d8a50a17986a78eea86bf1b..5913831f11f3c66c2b886035a70b2192421d3fd7 100644 (file)
@@ -23,7 +23,7 @@ class EventSubscriber extends BaseGenerator {
     $questions = Utils::defaultQuestions();
 
     $vars = &$this->collectVars($input, $output, $questions);
-    $vars['class'] = Utils::camelize($vars['name'] . 'Subscriber');
+    $vars['class'] = Utils::camelize($vars['name']) . 'Subscriber';
 
     $this->addFile()
       ->path('src/EventSubscriber/{class}.php')