5
5
*/
6
6
namespace Magento \GroupedProductSampleData \Model ;
7
7
8
+ use Magento \Framework \Setup \SampleData \Context as SampleDataContext ;
8
9
use Magento \Catalog \Model \Product \Initialization \Helper \ProductLinks ;
9
10
use \Magento \Framework \App \ObjectManager ;
10
11
@@ -23,6 +24,38 @@ class Product extends \Magento\CatalogSampleData\Model\Product
23
24
*/
24
25
private $ productLinksHelper ;
25
26
27
+ /**
28
+ * Product constructor.
29
+ * @param SampleDataContext $sampleDataContext
30
+ * @param \Magento\Catalog\Model\ProductFactory $productFactory
31
+ * @param \Magento\Catalog\Model\ConfigFactory $catalogConfig
32
+ * @param \Magento\GroupedProductSampleData\Model\Product\Converter $converter
33
+ * @param \Magento\Framework\Setup\SampleData\FixtureManager $fixtureManager
34
+ * @param \Magento\CatalogSampleData\Model\Product\Gallery $gallery
35
+ * @param \Magento\Store\Model\StoreManagerInterface $storeManager
36
+ * @param \Magento\Eav\Model\Config $eavConfig
37
+ */
38
+ public function __construct (
39
+ SampleDataContext $ sampleDataContext ,
40
+ \Magento \Catalog \Model \ProductFactory $ productFactory ,
41
+ \Magento \Catalog \Model \ConfigFactory $ catalogConfig ,
42
+ \Magento \GroupedProductSampleData \Model \Product \Converter $ converter ,
43
+ \Magento \Framework \Setup \SampleData \FixtureManager $ fixtureManager ,
44
+ \Magento \CatalogSampleData \Model \Product \Gallery $ gallery ,
45
+ \Magento \Store \Model \StoreManagerInterface $ storeManager ,
46
+ \Magento \Eav \Model \Config $ eavConfig
47
+ ) {
48
+ parent ::__construct (
49
+ $ sampleDataContext ,
50
+ $ productFactory ,
51
+ $ catalogConfig ,
52
+ $ converter ,
53
+ $ gallery ,
54
+ $ storeManager ,
55
+ $ eavConfig
56
+ );
57
+ }
58
+
26
59
/**
27
60
* @param \Magento\Catalog\Model\Product $product
28
61
* @param array $data
0 commit comments