Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / RouteSubscriberCommand.php
index 505b64e94e02e1115b25db7986367caff3d9a2b1..1085ea46941d6fba0056769843a7f92a662d482c 100644 (file)
@@ -101,7 +101,7 @@ class RouteSubscriberCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($output)) {
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($output)) {
-            return;
+            return 1;
         }
 
         $module = $input->getOption('module');
         }
 
         $module = $input->getOption('module');
@@ -111,6 +111,8 @@ class RouteSubscriberCommand extends Command
         $this->generator->generate($module, $name, $class);
 
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
         $this->generator->generate($module, $name, $class);
 
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+        return 0;
     }
 
     /**
     }
 
     /**