Skip to content

Commit 6a4ec67

Browse files
author
Bryant Luk
committed
MAGETWO-361898: Customer-facing resources in Sales & Checkout APIs - "/mine" APIs
- Move ParamOverriderCartId to Quote module - Remove QuoteWebapi module - Move ParamOverriderInterface to framework
1 parent ee650d1 commit 6a4ec67

File tree

10 files changed

+12
-142
lines changed

10 files changed

+12
-142
lines changed

app/code/Magento/QuoteWebapi/Model/Webapi/ParamOverriderCartId.php renamed to app/code/Magento/Quote/Model/Webapi/ParamOverriderCartId.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
namespace Magento\QuoteWebapi\Model\Webapi;
7+
namespace Magento\Quote\Model\Webapi;
88

99
use Magento\Authorization\Model\UserContextInterface;
10+
use Magento\Framework\Webapi\Rest\Request\ParamOverriderInterface;
1011
use Magento\Quote\Api\CartManagementInterface;
1112

1213
/**

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,12 @@
3535
<preference for="Magento\Quote\Api\GuestShippingAddressManagementInterface" type="Magento\Quote\Model\GuestCart\GuestShippingAddressManagement" />
3636
<preference for="Magento\Quote\Api\GuestShippingMethodManagementInterface" type="Magento\Quote\Model\GuestCart\GuestShippingMethodManagement" />
3737
<preference for="Magento\Quote\Api\GuestBillingAddressManagementInterface" type="Magento\Quote\Model\GuestCart\GuestBillingAddressManagement" />
38+
39+
<type name="Magento\Webapi\Controller\Rest\ParamsOverrider">
40+
<arguments>
41+
<argument name="paramsOverrider" xsi:type="array">
42+
<item name="%cart_id%" xsi:type="object">Magento\QuoteWebapi\Model\Webapi\ParamOverriderCartId</item>
43+
</argument>
44+
</arguments>
45+
</type>
3846
</config>

app/code/Magento/QuoteWebapi/LICENSE.txt

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)