Skip to content

Commit c2d6849

Browse files
committed
#1291 - moved dependencies in correct module
1 parent 6054320 commit c2d6849

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
@@ -621,4 +621,16 @@
621621
</arguments>
622622
</type>
623623
<type name="Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitation" shared="false"/>
624+
<type name="Magento\Eav\Model\EavCustomAttributeTypeLocator">
625+
<arguments>
626+
<argument name="serviceEntityTypeMap" xsi:type="array">
627+
<item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="const">Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE</item>
628+
</argument>
629+
<argument name="serviceBackendModelDataInterfaceMap" xsi:type="array">
630+
<item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="array">
631+
<item name="Magento\Catalog\Model\Product\Attribute\Backend\Media" xsi:type="string">Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface</item>
632+
</item>
633+
</argument>
634+
</arguments>
635+
</type>
624636
</config>

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

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