File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/code/Magento/Developer/Console/Command Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ public function __construct(
53
53
?AreaList $ areaList = null
54
54
)
55
55
{
56
- $ this ->areaList = $ areaList ?? \Magento \Framework \App \ObjectManager::getInstance ()->get (AreaList::class);
57
56
$ this ->diInformation = $ diInformation ;
57
+ $ this ->areaList = $ areaList ?? \Magento \Framework \App \ObjectManager::getInstance ()->get (AreaList::class);
58
58
parent ::__construct ();
59
59
}
60
60
@@ -208,11 +208,12 @@ private function setDiArea($area): void
208
208
if ($ this ->validateAreaCodeFromInput ($ area )) {
209
209
$ objectManager = ObjectManager::getInstance ();
210
210
211
- $ objectManager ->configure (
212
- $ objectManager
213
- ->get (\Magento \Framework \App \ObjectManager \ConfigLoader::class)
214
- ->load ($ area )
215
- );
211
+ $ areaOmConfiguration = $ objectManager
212
+ ->get (\Magento \Framework \App \ObjectManager \ConfigLoader::class)
213
+ ->load ($ area );
214
+
215
+ $ objectManager ->configure ($ areaOmConfiguration );
216
+
216
217
$ objectManager ->get (\Magento \Framework \Config \ScopeInterface::class)
217
218
->setCurrentScope ($ area );
218
219
} else {
You can’t perform that action at this time.
0 commit comments