Skip to content

Commit 772336d

Browse files
MAGETWO-66656: Fix retrieval of old value in config import
1 parent ee45b19 commit 772336d

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/Config/etc

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,14 @@
279279
</argument>
280280
</arguments>
281281
</type>
282-
<type name="Magento\Framework\App\Config\ValueInterface">
282+
<virtualType name="snapshotValue" type="Magento\Framework\App\Config\Value">
283283
<arguments>
284284
<argument name="config" xsi:type="object">configSnapshot</argument>
285285
</arguments>
286+
</virtualType>
287+
<type name="Magento\Config\Model\Config\Importer">
288+
<arguments>
289+
<argument name="scopeConfig" xsi:type="object">snapshotValue</argument>
290+
</arguments>
286291
</type>
287292
</config>

0 commit comments

Comments
 (0)