File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,7 @@ public function __construct(
92
92
$ this ->changeDetector = $ changeDetector ;
93
93
$ this ->processorFacadeFactory = $ processorFacadeFactory ;
94
94
$ this ->deploymentConfig = $ deploymentConfig ;
95
- $ this ->localeEmulator = $ localeEmulator ??
96
- ObjectManager::getInstance ()->get (LocaleEmulatorInterface::class);
95
+ $ this ->localeEmulator = $ localeEmulator ;
97
96
98
97
parent ::__construct ();
99
98
}
Original file line number Diff line number Diff line change @@ -126,8 +126,7 @@ public function __construct(
126
126
?: ObjectManager::getInstance ()->get (PathValidatorFactory::class);
127
127
$ this ->emulatedAreaProcessor = $ emulatedAreaProcessor
128
128
?: ObjectManager::getInstance ()->get (EmulatedAdminhtmlAreaProcessor::class);
129
- $ this ->localeEmulator = $ localeEmulator
130
- ?: ObjectManager::getInstance ()->get (LocaleEmulatorInterface::class);
129
+ $ this ->localeEmulator = $ localeEmulator ;
131
130
}
132
131
133
132
/**
Original file line number Diff line number Diff line change 11
11
<preference for =" Magento\Framework\App\Config\ConfigResource\ConfigInterface" type =" Magento\Config\Model\ResourceModel\Config" />
12
12
<preference for =" Magento\Framework\App\Config\CommentParserInterface" type =" Magento\Config\Model\Config\Parser\Comment" />
13
13
<preference for =" Magento\Config\Model\Config\Structure\ElementVisibilityInterface" type =" Magento\Config\Model\Config\Structure\ElementVisibilityComposite" />
14
- <preference for =" Magento\Config\Console\Command\LocaleEmulatorInterface" type =" Magento\Config\Console\Command\LocaleEmulator\Proxy " />
14
+ <preference for =" Magento\Config\Console\Command\LocaleEmulatorInterface" type =" Magento\Config\Console\Command\LocaleEmulator" />
15
15
<type name =" Magento\Config\Model\Config\Structure\ElementVisibilityComposite" >
16
16
<arguments >
17
17
<argument name =" visibility" xsi : type =" array" >
310
310
<type name =" Magento\Config\Console\Command\ConfigShowCommand" >
311
311
<arguments >
312
312
<argument name =" configSource" xsi : type =" object" >configShowSourceAggregated</argument >
313
+ <argument name =" localeEmulator" xsi : type =" object" >Magento\Config\Console\Command\LocaleEmulatorInterface\Proxy</argument >
314
+ </arguments >
315
+ </type >
316
+ <type name =" Magento\Config\Console\Command\ConfigSetCommand" >
317
+ <arguments >
318
+ <argument name =" localeEmulator" xsi : type =" object" >Magento\Config\Console\Command\LocaleEmulatorInterface\Proxy</argument >
313
319
</arguments >
314
320
</type >
315
321
<type name =" Magento\Framework\Console\CommandListInterface" >
You can’t perform that action at this time.
0 commit comments