Skip to content

Commit c8e71a6

Browse files
Merge branch '2.4.7-beta2-develop' into LYNX-244
2 parents 4b21599 + 81274fb commit c8e71a6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

app/code/Magento/Config/Console/Command/ConfigSetCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ public function __construct(
9292
$this->changeDetector = $changeDetector;
9393
$this->processorFacadeFactory = $processorFacadeFactory;
9494
$this->deploymentConfig = $deploymentConfig;
95-
$this->localeEmulator = $localeEmulator ??
96-
ObjectManager::getInstance()->get(LocaleEmulatorInterface::class);
95+
$this->localeEmulator = $localeEmulator;
9796

9897
parent::__construct();
9998
}

app/code/Magento/Config/Console/Command/ConfigShowCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ public function __construct(
126126
?: ObjectManager::getInstance()->get(PathValidatorFactory::class);
127127
$this->emulatedAreaProcessor = $emulatedAreaProcessor
128128
?: ObjectManager::getInstance()->get(EmulatedAdminhtmlAreaProcessor::class);
129-
$this->localeEmulator = $localeEmulator
130-
?: ObjectManager::getInstance()->get(LocaleEmulatorInterface::class);
129+
$this->localeEmulator = $localeEmulator;
131130
}
132131

133132
/**

app/code/Magento/Config/etc/di.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<preference for="Magento\Framework\App\Config\ConfigResource\ConfigInterface" type="Magento\Config\Model\ResourceModel\Config" />
1212
<preference for="Magento\Framework\App\Config\CommentParserInterface" type="Magento\Config\Model\Config\Parser\Comment" />
1313
<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" />
1515
<type name="Magento\Config\Model\Config\Structure\ElementVisibilityComposite">
1616
<arguments>
1717
<argument name="visibility" xsi:type="array">
@@ -310,6 +310,12 @@
310310
<type name="Magento\Config\Console\Command\ConfigShowCommand">
311311
<arguments>
312312
<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>
313319
</arguments>
314320
</type>
315321
<type name="Magento\Framework\Console\CommandListInterface">

0 commit comments

Comments
 (0)