Skip to content

Commit b83ecf3

Browse files
author
Bryant Luk
committed
MAGETWO-36063: Update REST and SOAP controllers to filter out attributes based on ACL
- Fix CustomAttributesProcessor use statements
1 parent c3b1e64 commit b83ecf3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/Reflection/CustomAttributesProcessor.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
namespace Magento\Framework\Reflection;
88

99
use Magento\Framework\Phrase;
10+
use Magento\Framework\Api\AttributeInterface;
11+
use Magento\Framework\Api\AttributeValue;
1012
use Magento\Framework\Api\SimpleDataObjectConverter;
1113
use Zend\Code\Reflection\MethodReflection;
1214
use Magento\Framework\Api\CustomAttributesDataInterface;
1315
use Magento\Framework\Api\AttributeTypeResolverInterface;
14-
1516
/**
1617
* Processes custom attributes and produces an array for the data.
1718
*/
@@ -59,11 +60,11 @@ public function buildOutputDataArray(CustomAttributesDataInterface $objectWithCu
5960
/**
6061
* Convert custom_attribute object to use flat array structure
6162
*
62-
* @param \Magento\Framework\Api\AttributeInterface $customAttribute
63+
* @param AttributeInterface $customAttribute
6364
* @param string $dataObjectType
6465
* @return array
6566
*/
66-
private function convertCustomAttribute($customAttribute, $dataObjectType)
67+
private function convertCustomAttribute(AttributeInterface $customAttribute, $dataObjectType)
6768
{
6869
$data = [];
6970
$data[AttributeValue::ATTRIBUTE_CODE] = $customAttribute->getAttributeCode();

0 commit comments

Comments
 (0)