Skip to content

Commit 817718d

Browse files
author
Eric Bohanon
committed
MAGETWO-83872: Write metadata service
1 parent a279d9c commit 817718d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/Eav/Model/TypeLocator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class TypeLocator implements CustomAttributeTypeLocatorInterface
2828
/**
2929
* Initialize TypeLocator
3030
*
31+
* @param ServiceTypeListInterface $serviceTypeList
3132
* @param \Magento\Framework\Webapi\CustomAttributeTypeLocatorInterface[] $typeLocators
3233
*/
3334
public function __construct(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct($serviceTypeToEntityTypeMap)
3737
public function getEntityType(string $serviceType)
3838
{
3939
if (isset($this->serviceTypeToEntityTypeMap[$serviceType])) {
40-
return $this->serviceTypeToEntityTypeMap;
40+
return $this->serviceTypeToEntityTypeMap[$serviceType];
4141
}
4242

4343
return false;

0 commit comments

Comments
 (0)