File tree 1 file changed +4
-4
lines changed
app/code/Magento/Catalog/Model/Product
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ public function __construct(
59
59
CopyConstructorInterface $ copyConstructor ,
60
60
ProductFactory $ productFactory ,
61
61
ScopeOverriddenValue $ scopeOverriddenValue ,
62
- OptionRepository $ optionRepository = null ,
63
- MetadataPool $ metadataPool = null
62
+ OptionRepository $ optionRepository ,
63
+ MetadataPool $ metadataPool
64
64
) {
65
65
$ this ->productFactory = $ productFactory ;
66
66
$ this ->copyConstructor = $ copyConstructor ;
67
67
$ this ->scopeOverriddenValue = $ scopeOverriddenValue ;
68
- $ this ->optionRepository = $ optionRepository ?: ObjectManager:: getInstance ()-> get (OptionRepository::class) ;
69
- $ this ->metadataPool = $ metadataPool ?: ObjectManager:: getInstance ()-> get (MetadataPool::class) ;
68
+ $ this ->optionRepository = $ optionRepository ;
69
+ $ this ->metadataPool = $ metadataPool ;
70
70
}
71
71
72
72
/**
You can’t perform that action at this time.
0 commit comments