Skip to content

Commit b1a5b9f

Browse files
Bohdan Korablovisitnikov
authored andcommitted
MAGETWO-53777: [Github] Magento 2.1 RC1 - Error when running CLI upgrade command #4795
1 parent ca303c5 commit b1a5b9f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

setup/src/Magento/Setup/Console/Command/UpgradeCommand.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ protected function configure()
7373
*/
7474
protected function execute(InputInterface $input, OutputInterface $output)
7575
{
76-
$areaCode = 'setup';
77-
/** @var \Magento\Framework\ObjectManagerInterface $objectManager */
78-
$objectManager = $this->objectManagerProvider->get();
79-
/** @var \Magento\Framework\App\State $appState */
80-
$appState = $objectManager->get('Magento\Framework\App\State');
81-
$appState->setAreaCode($areaCode);
82-
/** @var \Magento\Framework\ObjectManager\ConfigLoaderInterface $configLoader */
83-
$configLoader = $objectManager->get('Magento\Framework\ObjectManager\ConfigLoaderInterface');
84-
$objectManager->configure($configLoader->load($areaCode));
85-
8676
$keepGenerated = $input->getOption(self::INPUT_KEY_KEEP_GENERATED);
8777
$installer = $this->installerFactory->create(new ConsoleLogger($output));
8878
$installer->updateModulesSequence($keepGenerated);

0 commit comments

Comments
 (0)