Skip to content

Commit bd53786

Browse files
committed
Add missing type preference for sample data command
1 parent 42044b9 commit bd53786

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@
1515
</argument>
1616
</arguments>
1717
</type>
18-
<preference for="Magento\Framework\Filesystem\Directory\ReadInterface" type="Magento\Framework\Filesystem\Directory\Read" />
18+
<virtualType name="Magento\SampleData\Filesystem\Directory\Read" type="Magento\Framework\Filesystem\Directory\Read">
19+
<arguments>
20+
<argument name="driver" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
21+
</arguments>
22+
</virtualType>
23+
<preference for="Magento\Framework\Filesystem\Directory\ReadInterface" type="Magento\SampleData\Filesystem\Directory\Read" />
1924
</config>

0 commit comments

Comments
 (0)