Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / AuthenticationProviderCommand.php
index a05aadecb20a0f7c8eeb9d2c66d446d09cd0ee29..cb09454a51b317f07588e04a00c9acd129c15f15 100644 (file)
@@ -69,16 +69,16 @@ class AuthenticationProviderCommand extends Command
             ->setName('generate:authentication:provider')
             ->setDescription($this->trans('commands.generate.authentication.provider.description'))
             ->setHelp($this->trans('commands.generate.authentication.provider.help'))
-            ->addOption('module', '', InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'))
+            ->addOption('module', null, InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'))
             ->addOption(
                 'class',
-                '',
+                null,
                 InputOption::VALUE_OPTIONAL,
                 $this->trans('commands.generate.authentication.provider.options.class')
             )
             ->addOption(
                 'provider-id',
-                '',
+                null,
                 InputOption::VALUE_OPTIONAL,
                 $this->trans('commands.generate.authentication.provider.options.provider-id')
             );
@@ -93,7 +93,7 @@ class AuthenticationProviderCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io)) {
-            return;
+            return 1;
         }
 
         $module = $input->getOption('module');
@@ -101,6 +101,8 @@ class AuthenticationProviderCommand extends Command
         $provider_id = $input->getOption('provider-id');
 
         $this->generator->generate($module, $class, $provider_id);
+
+        return 0;
     }
 
     protected function interact(InputInterface $input, OutputInterface $output)