Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Theme / InstallCommand.php
index 078307d5d40f2fca9c9b77996e1881c83e14f525..acb4f88176421c02e7c16d9597a66d3d46d6a536 100644 (file)
@@ -64,7 +64,7 @@ class InstallCommand extends Command
             ->addArgument('theme', InputArgument::IS_ARRAY, $this->trans('commands.theme.install.options.module'))
             ->addOption(
                 'set-default',
-                '',
+                null,
                 InputOption::VALUE_NONE,
                 $this->trans('commands.theme.install.options.set-default')
             );
@@ -132,7 +132,7 @@ class InstallCommand extends Command
         if ($default && count($theme) > 1) {
             $io->error($this->trans('commands.theme.install.messages.invalid-theme-default'));
 
-            return;
+            return 1;
         }
 
         $themes  = $this->themeHandler->rebuildThemeData();
@@ -188,6 +188,8 @@ class InstallCommand extends Command
                     )
                 );
                 drupal_set_message($e->getTranslatedMessage($this->getStringTranslation(), $theme), 'error');
+
+                return 1;
             }
         } elseif (empty($themesAvailable) && count($themesInstalled) > 0) {
             if (count($themesInstalled) > 1) {
@@ -225,5 +227,7 @@ class InstallCommand extends Command
 
         // Run cache rebuild to see changes in Web UI
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+        return 0;
     }
 }