Skip to content

Commit 7c206ec

Browse files
author
Eric Bohanon
committed
MAGETWO-83872: Write metadata service
- Fix api constructor change
1 parent 8bffe43 commit 7c206ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,17 @@ public function __construct(
7979
TypeProcessor $typeProcessor,
8080
ObjectManagerInterface $objectManager,
8181
AttributeValueFactory $attributeValueFactory,
82-
TypeLocatorInterface $customAttributeTypeLocator,
8382
MethodsMap $methodsMap,
83+
TypeLocatorInterface $customAttributeTypeLocator = null,
8484
array $dataInterfaceToEntityTypeMap = []
8585
) {
8686
$this->typeProcessor = $typeProcessor;
8787
$this->objectManager = $objectManager;
8888
$this->attributeValueFactory = $attributeValueFactory;
8989
$this->customAttributeTypeLocator = $customAttributeTypeLocator;
9090
$this->methodsMap = $methodsMap;
91+
$this->customAttributeTypeLocator = $customAttributeTypeLocator
92+
?: \Magento\Framework\App\ObjectManager::getInstance()->get(TypeLocatorInterface::class);
9193
$this->dataInterfaceToEntityTypeMap = $dataInterfaceToEntityTypeMap;
9294
}
9395

0 commit comments

Comments
 (0)