File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
BundleGraphQl/etc/graphql
Catalog/Model/ResourceModel/Product Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 135
135
<argument name =" product" xsi : type =" object" >Magento\BundleGraphQl\Model\Resolver\Products\DataProvider\Deferred\Product\Option</argument >
136
136
</arguments >
137
137
</type >
138
+ <type name =" Magento\BundleGraphQl\Model\Resolver\PriceRange" >
139
+ <arguments >
140
+ <argument name =" productDataProvider" xsi : type =" object" >Magento\BundleGraphQl\Model\Resolver\Products\DataProvider\Deferred\Product\Option</argument >
141
+ </arguments >
142
+ </type >
138
143
<virtualType name =" Magento\BundleGraphQl\Model\Resolver\Options\Product"
139
144
type =" Magento\CatalogGraphQl\Model\Resolver\Product" >
140
145
<arguments >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Magento \Catalog \Model \ResourceModel \Product ;
3
+
4
+ /**
5
+ * Factory class for @see \Magento\Catalog\Model\ResourceModel\Product\Collection
6
+ */
7
+ class CollectionFactory
8
+ {
9
+ /**
10
+ * Object Manager instance
11
+ *
12
+ * @var \Magento\Framework\ObjectManagerInterface
13
+ */
14
+ protected $ _objectManager = null ;
15
+
16
+ /**
17
+ * Instance name to create
18
+ *
19
+ * @var string
20
+ */
21
+ protected $ _instanceName = null ;
22
+
23
+ /**
24
+ * Factory constructor
25
+ *
26
+ * @param \Magento\Framework\ObjectManagerInterface $objectManager
27
+ * @param string $instanceName
28
+ */
29
+ public function __construct (\Magento \Framework \ObjectManagerInterface $ objectManager , $ instanceName = '\\Magento \\Catalog \\Model \\ResourceModel \\Product \\Collection ' )
30
+ {
31
+ $ this ->_objectManager = $ objectManager ;
32
+ $ this ->_instanceName = $ instanceName ;
33
+ }
34
+
35
+ /**
36
+ * Create class instance with specified parameters
37
+ *
38
+ * @param array $data
39
+ * @return \Magento\Catalog\Model\ResourceModel\Product\Collection
40
+ */
41
+ public function create (array $ data = [])
42
+ {
43
+ return $ this ->_objectManager ->create ($ this ->_instanceName , $ data );
44
+ }
45
+ }
You can’t perform that action at this time.
0 commit comments