Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / ServiceCommand.php
index e71edc113674b275b0427ce98387132a0602c6f1..8106f152328eb10e6d88544eb0e47bc1a3debf97 100644 (file)
@@ -104,13 +104,13 @@ class ServiceCommand extends Command
             )
             ->addOption(
                 'interface',
             )
             ->addOption(
                 'interface',
-                false,
+                null,
                 InputOption::VALUE_NONE,
                 $this->trans('commands.common.service.options.interface')
             )
             ->addOption(
                 'interface_name',
                 InputOption::VALUE_NONE,
                 $this->trans('commands.common.service.options.interface')
             )
             ->addOption(
                 'interface_name',
-                false,
+                null,
                 InputOption::VALUE_OPTIONAL,
                 $this->trans('commands.common.service.options.interface_name')
             )
                 InputOption::VALUE_OPTIONAL,
                 $this->trans('commands.common.service.options.interface_name')
             )
@@ -137,7 +137,7 @@ class ServiceCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io)) {
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io)) {
-            return;
+            return 1;
         }
 
         $module = $input->getOption('module');
         }
 
         $module = $input->getOption('module');
@@ -164,6 +164,8 @@ class ServiceCommand extends Command
         $this->generator->generate($module, $name, $class, $interface, $interface_name, $build_services, $path_service);
 
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
         $this->generator->generate($module, $name, $class, $interface, $interface_name, $build_services, $path_service);
 
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+        return 0;
     }
 
     /**
     }
 
     /**