diff --git a/setup/src/Magento/Setup/Console/Command/AbstractDependenciesCommand.php b/setup/src/Magento/Setup/Console/Command/AbstractDependenciesCommand.php
index b7b5448338495..810d4d1156d07 100644
--- a/setup/src/Magento/Setup/Console/Command/AbstractDependenciesCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/AbstractDependenciesCommand.php
@@ -107,5 +107,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
// we must have an exit code higher than zero to indicate something was wrong
return \Magento\Framework\Console\Cli::RETURN_FAILURE;
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/AbstractMaintenanceCommand.php b/setup/src/Magento/Setup/Console/Command/AbstractMaintenanceCommand.php
index ae6611273cb6b..85ae008adf366 100644
--- a/setup/src/Magento/Setup/Console/Command/AbstractMaintenanceCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/AbstractMaintenanceCommand.php
@@ -99,6 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
. ''
);
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php b/setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php
index 8298072632976..0c049cebfffc3 100644
--- a/setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php
@@ -12,6 +12,7 @@
use Symfony\Component\Console\Input\InputOption;
use Magento\Framework\App\DeploymentConfig;
use Magento\Framework\Module\Status;
+use Magento\Framework\Console\Cli;
abstract class AbstractModuleManageCommand extends AbstractModuleCommand
{
@@ -77,14 +78,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!empty($messages)) {
$output->writeln(implode(PHP_EOL, $messages));
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
try {
$modulesToChange = $this->getStatus()->getModulesToChange($isEnable, $modules);
} catch (\LogicException $e) {
$output->writeln('' . $e->getMessage() . '');
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
if (!empty($modulesToChange)) {
$force = $input->getOption(self::INPUT_KEY_FORCE);
@@ -96,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
);
$output->writeln('' . implode("\n", $constraints) . '');
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
}
$this->setIsEnabled($isEnable, $modulesToChange, $output);
@@ -111,6 +112,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
} else {
$output->writeln('No modules were changed.');
}
+ return Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/AdminUserCreateCommand.php b/setup/src/Magento/Setup/Console/Command/AdminUserCreateCommand.php
index 940bcbbd6d7f1..8a2d34acc4e4a 100644
--- a/setup/src/Magento/Setup/Console/Command/AdminUserCreateCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/AdminUserCreateCommand.php
@@ -66,6 +66,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln(
'Created Magento administrator user named ' . $input->getOption(AdminAccount::KEY_USER) . ''
);
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php b/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
index 4192d22524ad1..aa96e9fdc7e71 100644
--- a/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
@@ -126,6 +126,7 @@ function ($value) {
$output->writeln('You made no changes to the configuration.');
}
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php b/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php
index 36b010d6d1e38..ae0c2f5c4e27f 100644
--- a/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php
@@ -67,5 +67,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$installer = $this->installFactory->create(new ConsoleLogger($output));
$installer->installDataFixtures();
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/DbSchemaUpgradeCommand.php b/setup/src/Magento/Setup/Console/Command/DbSchemaUpgradeCommand.php
index fbe1843e7e606..82188e5a8932b 100644
--- a/setup/src/Magento/Setup/Console/Command/DbSchemaUpgradeCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/DbSchemaUpgradeCommand.php
@@ -67,5 +67,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$installer = $this->installFactory->create(new ConsoleLogger($output));
$installer->installSchema();
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
index 090cc3fe6d83a..975c7864c3b4f 100644
--- a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
@@ -21,6 +21,7 @@
use Magento\Setup\Module\Di\App\Task\OperationInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\ProgressBar;
+use Magento\Framework\Console\Cli;
/**
* Command to run compile in single-tenant mode
@@ -127,7 +128,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln($line);
}
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
$modulePaths = $this->componentRegistrar->getPaths(ComponentRegistrar::MODULE);
@@ -193,8 +194,9 @@ function (OperationInterface $operation) use ($progressBar) {
} catch (OperationException $e) {
$output->writeln('' . $e->getMessage() . '');
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
+ return Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php b/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php
index f1c9e704a6883..09412c9c232ec 100644
--- a/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php
@@ -132,6 +132,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// we must have an exit code higher than zero to indicate something was wrong
return \Magento\Framework\Console\Cli::RETURN_FAILURE;
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/I18nCollectPhrasesCommand.php b/setup/src/Magento/Setup/Console/Command/I18nCollectPhrasesCommand.php
index 1151ba7630d5d..bb8ab4e4cc49a 100644
--- a/setup/src/Magento/Setup/Console/Command/I18nCollectPhrasesCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/I18nCollectPhrasesCommand.php
@@ -77,5 +77,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$input->getOption(self::INPUT_KEY_MAGENTO)
);
$output->writeln('Dictionary successfully processed.');
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/I18nPackCommand.php b/setup/src/Magento/Setup/Console/Command/I18nPackCommand.php
index 0fa3f474500db..7c5cc89387dcf 100644
--- a/setup/src/Magento/Setup/Console/Command/I18nPackCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/I18nPackCommand.php
@@ -91,5 +91,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$input->getOption(self::INPUT_KEY_ALLOW_DUPLICATES)
);
$output->writeln("Successfully saved $locale language package.");
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/InfoAdminUriCommand.php b/setup/src/Magento/Setup/Console/Command/InfoAdminUriCommand.php
index af3b018119d97..5b62d631d2c20 100644
--- a/setup/src/Magento/Setup/Console/Command/InfoAdminUriCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/InfoAdminUriCommand.php
@@ -53,5 +53,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
. $this->deploymentConfig->get(BackendConfigOptionsList::CONFIG_PATH_BACKEND_FRONTNAME)
. "\n"
);
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/InfoBackupsListCommand.php b/setup/src/Magento/Setup/Console/Command/InfoBackupsListCommand.php
index c22367bded29a..178102aa0b3b7 100644
--- a/setup/src/Magento/Setup/Console/Command/InfoBackupsListCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/InfoBackupsListCommand.php
@@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
if (empty($tempTable)) {
$output->writeln('No backup files found.');
- return;
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
$output->writeln("Showing backup files in $backupsDir.");
/** @var \Symfony\Component\Console\Helper\Table $table */
@@ -101,5 +101,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
} else {
$output->writeln('No backup files found.');
}
+
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/InfoCurrencyListCommand.php b/setup/src/Magento/Setup/Console/Command/InfoCurrencyListCommand.php
index b9734807e3522..d673fc85c1ef1 100644
--- a/setup/src/Magento/Setup/Console/Command/InfoCurrencyListCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/InfoCurrencyListCommand.php
@@ -56,5 +56,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$table->render($output);
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/InfoLanguageListCommand.php b/setup/src/Magento/Setup/Console/Command/InfoLanguageListCommand.php
index 3b1d1dd65bb69..99618548b3e55 100644
--- a/setup/src/Magento/Setup/Console/Command/InfoLanguageListCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/InfoLanguageListCommand.php
@@ -56,6 +56,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$table->render($output);
-
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/InfoTimezoneListCommand.php b/setup/src/Magento/Setup/Console/Command/InfoTimezoneListCommand.php
index 587334a7e1dfd..95b4cd27bbd3a 100644
--- a/setup/src/Magento/Setup/Console/Command/InfoTimezoneListCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/InfoTimezoneListCommand.php
@@ -56,5 +56,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$table->render($output);
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php b/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php
index d7186e7a1e5bf..8ba48cdb571fb 100644
--- a/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php
@@ -95,6 +95,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$installer = $this->installerFactory->create(new ConsoleLogger($output));
$installer->installUserConfig($input->getOptions());
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php b/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php
index 3df2825dfec1d..f3651d6a13d61 100644
--- a/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php
@@ -101,6 +101,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->maintenanceMode->setAddresses('');
$output->writeln('Set exempt IP-addresses: none');
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php b/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php
index 9162cc47f6bd9..45e4896988cf4 100644
--- a/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php
@@ -56,5 +56,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$addressInfo = $this->maintenanceMode->getAddressInfo();
$addresses = implode(', ', $addressInfo);
$output->writeln('List of exempt IP-addresses: ' . ($addresses ? $addresses : 'none') . '');
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/ModuleStatusCommand.php b/setup/src/Magento/Setup/Console/Command/ModuleStatusCommand.php
index a66f697864b4c..a9b8e2b6314e3 100644
--- a/setup/src/Magento/Setup/Console/Command/ModuleStatusCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/ModuleStatusCommand.php
@@ -65,5 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
} else {
$output->writeln(join("\n", $disabledModules));
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}
diff --git a/setup/src/Magento/Setup/Console/Command/ModuleUninstallCommand.php b/setup/src/Magento/Setup/Console/Command/ModuleUninstallCommand.php
index 0bdcaaa8cac14..4037eb54b3dab 100644
--- a/setup/src/Magento/Setup/Console/Command/ModuleUninstallCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/ModuleUninstallCommand.php
@@ -21,6 +21,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;
+use Magento\Framework\Console\Cli;
/**
* Command for uninstalling modules
@@ -199,7 +200,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
'You cannot run this command because the Magento application is not installed.'
);
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
$modules = $input->getArgument(self::INPUT_KEY_MODULES);
@@ -208,7 +209,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!empty($messages)) {
$output->writeln($messages);
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
// check dependencies
@@ -216,7 +217,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!empty($dependencyMessages)) {
$output->writeln($dependencyMessages);
// we must have an exit code higher than zero to indicate something was wrong
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
$helper = $this->getHelper('question');
@@ -225,7 +226,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
false
);
if (!$helper->ask($input, $output, $question) && $input->isInteractive()) {
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
try {
$output->writeln('Enabling maintenance mode');
@@ -260,8 +261,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
} catch (\Exception $e) {
$output->writeln('' . $e->getMessage() . '');
$output->writeln('Please disable maintenance mode after you resolved above issues');
- return \Magento\Framework\Console\Cli::RETURN_FAILURE;
+ return Cli::RETURN_FAILURE;
}
+ return Cli::RETURN_SUCCESS;
}
/**
diff --git a/setup/src/Magento/Setup/Console/Command/UninstallCommand.php b/setup/src/Magento/Setup/Console/Command/UninstallCommand.php
index f321117422adf..0163ef3846c83 100644
--- a/setup/src/Magento/Setup/Console/Command/UninstallCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/UninstallCommand.php
@@ -50,5 +50,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$installer = $this->installerFactory->create(new ConsoleLogger($output));
$installer->uninstall();
}
+ return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
}