Skip to content
Snippets Groups Projects
Commit e4a94c23 authored by Bohdan Korablov's avatar Bohdan Korablov
Browse files

MAGETWO-53777: [Github] Magento 2.1 RC1 - Error when running CLI upgrade command #4795

parent c29f3e7d
Branches
No related merge requests found
...@@ -73,16 +73,6 @@ class UpgradeCommand extends AbstractSetupCommand ...@@ -73,16 +73,6 @@ class UpgradeCommand extends AbstractSetupCommand
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
$areaCode = 'setup';
/** @var \Magento\Framework\ObjectManagerInterface $objectManager */
$objectManager = $this->objectManagerProvider->get();
/** @var \Magento\Framework\App\State $appState */
$appState = $objectManager->get('Magento\Framework\App\State');
$appState->setAreaCode($areaCode);
/** @var \Magento\Framework\ObjectManager\ConfigLoaderInterface $configLoader */
$configLoader = $objectManager->get('Magento\Framework\ObjectManager\ConfigLoaderInterface');
$objectManager->configure($configLoader->load($areaCode));
$keepGenerated = $input->getOption(self::INPUT_KEY_KEEP_GENERATED); $keepGenerated = $input->getOption(self::INPUT_KEY_KEEP_GENERATED);
$installer = $this->installerFactory->create(new ConsoleLogger($output)); $installer = $this->installerFactory->create(new ConsoleLogger($output));
$installer->updateModulesSequence($keepGenerated); $installer->updateModulesSequence($keepGenerated);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment