Skip to content

Commit d081054

Browse files
author
Oleksii Korshenko
committed
Merge remote-tracking branch 'origin/MAGETWO-52471' into pull-request
2 parents dfa9c35 + d69f408 commit d081054

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

app/code/Magento/Authorization/etc/di.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
<argument name="aclBuilder" xsi:type="object">Magento\Framework\Acl\Builder\Proxy</argument>
2525
</arguments>
2626
</type>
27+
<preference for="Magento\Authorization\Model\UserContextInterface" type="Magento\Authorization\Model\CompositeUserContext"/>
2728
</config>

app/code/Magento/Catalog/etc/di.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,18 @@
600600
</argument>
601601
</arguments>
602602
</type>
603+
<type name="Magento\Eav\Model\EavCustomAttributeTypeLocator">
604+
<arguments>
605+
<argument name="serviceEntityTypeMap" xsi:type="array">
606+
<item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="const">Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE</item>
607+
</argument>
608+
<argument name="serviceBackendModelDataInterfaceMap" xsi:type="array">
609+
<item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="array">
610+
<item name="Magento\Catalog\Model\Product\Attribute\Backend\Media" xsi:type="string">Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface</item>
611+
</item>
612+
</argument>
613+
</arguments>
614+
</type>
603615
<type name="Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitation" shared="false"/>
604616
<type name="Magento\Theme\Model\Design\Config\MetadataProvider">
605617
<arguments>

app/code/Magento/Eav/etc/di.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,8 @@
4848
</type>
4949
<type name="Magento\Eav\Model\EavCustomAttributeTypeLocator">
5050
<arguments>
51-
<argument name="serviceEntityTypeMap" xsi:type="array">
52-
<item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="const">Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE</item>
53-
</argument>
54-
<argument name="serviceBackendModelDataInterfaceMap" xsi:type="array">
55-
<item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="array">
56-
<item name="Magento\Catalog\Model\Product\Attribute\Backend\Media" xsi:type="string">Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface</item>
57-
</item>
58-
</argument>
51+
<argument name="serviceEntityTypeMap" xsi:type="array" />
52+
<argument name="serviceBackendModelDataInterfaceMap" xsi:type="array" />
5953
</arguments>
6054
</type>
6155
<type name="Magento\Eav\Model\Entity\Attribute">

app/code/Magento/Quote/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<preference for="Magento\Quote\Api\Data\PaymentInterface" type="\Magento\Quote\Model\Quote\Payment" />
2121
<preference for="Magento\Quote\Api\CouponManagementInterface" type="Magento\Quote\Model\CouponManagement" />
2222
<preference for="Magento\Quote\Api\CartManagementInterface" type="Magento\Quote\Model\QuoteManagement" />
23-
<preference for="Magento\Authorization\Model\UserContextInterface" type="Magento\Authorization\Model\CompositeUserContext"/>
2423
<preference for="Magento\Quote\Api\CartTotalRepositoryInterface" type="\Magento\Quote\Model\Cart\CartTotalRepository" />
2524
<preference for="Magento\Quote\Api\CartTotalManagementInterface" type="\Magento\Quote\Model\Cart\CartTotalManagement" />
2625
<preference for="Magento\Quote\Api\Data\TotalsInterface" type="\Magento\Quote\Model\Cart\Totals" />

app/code/Magento/Webapi/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
9-
<preference for="Magento\Authorization\Model\UserContextInterface" type="Magento\Authorization\Model\CompositeUserContext"/>
109
<type name="Magento\Framework\App\AreaList">
1110
<arguments>
1211
<argument name="areas" xsi:type="array">

0 commit comments

Comments
 (0)