File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
app/code/Magento/Catalog/Model/Product Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Catalog \Api \Data \ProductCustomOptionValuesInterfaceFactory ;
12
12
use Magento \Catalog \Api \Data \ProductInterface ;
13
13
use Magento \Catalog \Model \Product ;
14
+ use Magento \Catalog \Model \Product \Option \Type \Date ;
14
15
use Magento \Catalog \Model \Product \Option \Type \DefaultType ;
16
+ use Magento \Catalog \Model \Product \Option \Type \File ;
17
+ use Magento \Catalog \Model \Product \Option \Type \Select ;
18
+ use Magento \Catalog \Model \Product \Option \Type \Text ;
15
19
use Magento \Catalog \Model \ResourceModel \Product \Option \Value \Collection ;
16
20
use Magento \Catalog \Pricing \Price \BasePrice ;
17
21
use Magento \Framework \EntityManager \MetadataPool ;
@@ -159,10 +163,10 @@ public function __construct(
159
163
$ this ->customOptionValuesFactory = $ customOptionValuesFactory ?:
160
164
\Magento \Framework \App \ObjectManager::getInstance ()->get (ProductCustomOptionValuesInterfaceFactory::class);
161
165
$ this ->optionGroups = $ optionGroups ?: [
162
- 'date ' => ' Magento\Catalog\Model\Product\Option\Type\ Date' ,
163
- 'file ' => ' Magento\Catalog\Model\Product\Option\Type\ File' ,
164
- 'select ' => ' Magento\Catalog\Model\Product\Option\Type\ Select' ,
165
- 'text ' => ' Magento\Catalog\Model\Product\Option\Type\ Text' ,
166
+ 'date ' => Date::class ,
167
+ 'file ' => File::class ,
168
+ 'select ' => Select::class ,
169
+ 'text ' => Text::class ,
166
170
];
167
171
$ this ->optionGroupsToTypes = $ optionGroupsToTypes ?: [
168
172
'field ' => 'text ' ,
You can’t perform that action at this time.
0 commit comments