File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/internal/Magento/Framework/Webapi Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,17 @@ public function __construct(
79
79
TypeProcessor $ typeProcessor ,
80
80
ObjectManagerInterface $ objectManager ,
81
81
AttributeValueFactory $ attributeValueFactory ,
82
- TypeLocatorInterface $ customAttributeTypeLocator ,
83
82
MethodsMap $ methodsMap ,
83
+ TypeLocatorInterface $ customAttributeTypeLocator = null ,
84
84
array $ dataInterfaceToEntityTypeMap = []
85
85
) {
86
86
$ this ->typeProcessor = $ typeProcessor ;
87
87
$ this ->objectManager = $ objectManager ;
88
88
$ this ->attributeValueFactory = $ attributeValueFactory ;
89
89
$ this ->customAttributeTypeLocator = $ customAttributeTypeLocator ;
90
90
$ this ->methodsMap = $ methodsMap ;
91
+ $ this ->customAttributeTypeLocator = $ customAttributeTypeLocator
92
+ ?: \Magento \Framework \App \ObjectManager::getInstance ()->get (TypeLocatorInterface::class);
91
93
$ this ->dataInterfaceToEntityTypeMap = $ dataInterfaceToEntityTypeMap ;
92
94
}
93
95
You can’t perform that action at this time.
0 commit comments