9
9
10
10
namespace Magento \Framework \Webapi ;
11
11
12
- use Magento \Framework \Webapi \ServiceTypeToEntityTypeMap ;
13
12
use Magento \Framework \Api \AttributeValue ;
14
13
use Magento \Framework \Api \AttributeValueFactory ;
15
14
use Magento \Framework \Api \SimpleDataObjectConverter ;
16
15
use Magento \Framework \Exception \InputException ;
17
16
use Magento \Framework \Exception \SerializationException ;
17
+ use Magento \Framework \ObjectManager \ConfigInterface ;
18
18
use Magento \Framework \ObjectManagerInterface ;
19
19
use Magento \Framework \Phrase ;
20
20
use Magento \Framework \Reflection \MethodsMap ;
@@ -68,7 +68,7 @@ class ServiceInputProcessor implements ServicePayloadConverterInterface
68
68
private $ serviceTypeToEntityTypeMap ;
69
69
70
70
/**
71
- * @var \Magento\Framework\ObjectManager\ ConfigInterface
71
+ * @var ConfigInterface
72
72
*/
73
73
private $ config ;
74
74
@@ -80,7 +80,7 @@ class ServiceInputProcessor implements ServicePayloadConverterInterface
80
80
* @param AttributeValueFactory $attributeValueFactory
81
81
* @param CustomAttributeTypeLocatorInterface $customAttributeTypeLocator
82
82
* @param MethodsMap $methodsMap
83
- * @param \Magento\Framework\ObjectManager\ ConfigInterface $config
83
+ * @param ConfigInterface $config
84
84
* @param ServiceTypeToEntityTypeMap $serviceTypeToEntityTypeMap
85
85
*/
86
86
public function __construct (
@@ -89,7 +89,7 @@ public function __construct(
89
89
AttributeValueFactory $ attributeValueFactory ,
90
90
CustomAttributeTypeLocatorInterface $ customAttributeTypeLocator ,
91
91
MethodsMap $ methodsMap ,
92
- \ Magento \ Framework \ ObjectManager \ ConfigInterface $ config ,
92
+ ConfigInterface $ config = null ,
93
93
ServiceTypeToEntityTypeMap $ serviceTypeToEntityTypeMap = null
94
94
) {
95
95
$ this ->typeProcessor = $ typeProcessor ;
@@ -99,7 +99,8 @@ public function __construct(
99
99
$ this ->methodsMap = $ methodsMap ;
100
100
$ this ->serviceTypeToEntityTypeMap = $ serviceTypeToEntityTypeMap
101
101
?: \Magento \Framework \App \ObjectManager::getInstance ()->get (ServiceTypeToEntityTypeMap::class);
102
- $ this ->config = $ config ;
102
+ $ this ->config = $ config
103
+ ?: \Magento \Framework \App \ObjectManager::getInstance ()->get (ConfigInterface::class);
103
104
}
104
105
105
106
/**
0 commit comments