File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
ConfigurableSampleData/Model
DownloadableSampleData/Model Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function __construct(
60
60
$ this ->importModel = $ importModel ;
61
61
$ this ->csvSourceFactory = $ csvSourceFactory ;
62
62
$ this ->indexerCollectionFactory = $ indexerCollectionFactory ;
63
- $ this ->filesystem = $ readFactory ;
63
+ $ this ->readFactory = $ readFactory ;
64
64
$ this ->componentRegistrar = $ componentRegistrar ;
65
65
}
66
66
@@ -84,7 +84,7 @@ public function install()
84
84
[
85
85
'file ' => 'fixtures/products.csv ' ,
86
86
'directory ' => $ this ->readFactory ->create (
87
- $ this ->componentRegistrar ->getPath (ComponentRegistrar::MODULE , 'Magento_SampleData ' )
87
+ $ this ->componentRegistrar ->getPath (ComponentRegistrar::MODULE , 'Magento_ConfigurableSampleData ' )
88
88
)
89
89
]
90
90
);
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \DownloadableSampleData \Model ;
7
7
8
+ use Magento \Framework \Setup \SampleData \Context as SampleDataContext ;
9
+
8
10
/**
9
11
* Setup downloadable product
10
12
*/
@@ -25,6 +27,33 @@ class Product extends \Magento\CatalogSampleData\Model\Product
25
27
*/
26
28
protected $ downloadableData = [];
27
29
30
+ /**
31
+ * @param SampleDataContext $sampleDataContext
32
+ * @param \Magento\Catalog\Model\ProductFactory $productFactory
33
+ * @param \Magento\Catalog\Model\ConfigFactory $catalogConfig
34
+ * @param Product\Converter $converter
35
+ * @param \Magento\CatalogSampleData\Model\Product\Gallery $gallery
36
+ * @param \Magento\Store\Model\StoreManagerInterface $storeManager
37
+ */
38
+ public function __construct (
39
+ SampleDataContext $ sampleDataContext ,
40
+ \Magento \Catalog \Model \ProductFactory $ productFactory ,
41
+ \Magento \Catalog \Model \ConfigFactory $ catalogConfig ,
42
+ \Magento \DownloadableSampleData \Model \Product \Converter $ converter ,
43
+ \Magento \CatalogSampleData \Model \Product \Gallery $ gallery ,
44
+ \Magento \Store \Model \StoreManagerInterface $ storeManager
45
+ )
46
+ {
47
+ parent ::__construct (
48
+ $ sampleDataContext ,
49
+ $ productFactory ,
50
+ $ catalogConfig ,
51
+ $ converter ,
52
+ $ gallery ,
53
+ $ storeManager
54
+ );
55
+ }
56
+
28
57
/**
29
58
* {@inheritdoc}
30
59
*/
You can’t perform that action at this time.
0 commit comments