Skip to content

Commit fa6e3d3

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-32501: Implement Cart Service interfaces
moved plugins and their tests to quote module
1 parent 88264b7 commit fa6e3d3

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

app/code/Magento/Checkout/Model/Cart/Access/CartManagementPlugin.php renamed to app/code/Magento/Quote/Model/Cart/Access/CartManagementPlugin.php

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

7-
namespace Magento\Checkout\Model\Cart\Access;
7+
namespace Magento\Quote\Model\Cart\Access;
88

99
use Magento\Framework\Exception\AuthorizationException;
1010
use Magento\Authorization\Model\UserContextInterface;

app/code/Magento/Checkout/Model/Cart/Access/CartRepositoryPlugin.php renamed to app/code/Magento/Quote/Model/Cart/Access/CartRepositoryPlugin.php

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

7-
namespace Magento\Checkout\Model\Cart\Access;
7+
namespace Magento\Quote\Model\Cart\Access;
88

99
use Magento\Framework\Api\SearchCriteria;
1010
use Magento\Framework\Exception\AuthorizationException;

app/code/Magento/Checkout/etc/webapi_rest/di.xml renamed to app/code/Magento/Quote/etc/webapi_rest/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
99
<type name="Magento\Quote\Api\CartRepositoryInterface">
10-
<plugin name="admin_access" type="\Magento\Checkout\Model\Cart\Access\CartRepositoryPlugin" />
10+
<plugin name="admin_access" type="\Magento\Quote\Model\Cart\Access\CartRepositoryPlugin" />
1111
</type>
1212
<type name="Magento\Quote\Api\CartManagementInterface">
13-
<plugin name="admin_access" type="\Magento\Checkout\Model\Cart\Access\CartManagementPlugin" />
13+
<plugin name="admin_access" type="\Magento\Quote\Model\Cart\Access\CartManagementPlugin" />
1414
</type>
1515
</config>

app/code/Magento/Checkout/etc/webapi_soap/di.xml renamed to app/code/Magento/Quote/etc/webapi_soap/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
99
<type name="Magento\Quote\Api\CartRepositoryInterface">
10-
<plugin name="admin_access" type="\Magento\Checkout\Model\Cart\Access\CartRepositoryPlugin" />
10+
<plugin name="admin_access" type="\Magento\Quote\Model\Cart\Access\CartRepositoryPlugin" />
1111
</type>
1212
<type name="Magento\Quote\Api\CartManagementInterface">
13-
<plugin name="admin_access" type="\Magento\Checkout\Model\Cart\Access\CartManagementPlugin" />
13+
<plugin name="admin_access" type="\Magento\Quote\Model\Cart\Access\CartManagementPlugin" />
1414
</type>
1515
</config>

dev/tests/unit/testsuite/Magento/Checkout/Model/Cart/Access/CartManagementPluginTest.php renamed to dev/tests/unit/testsuite/Magento/Quote/Model/Cart/Access/CartManagementPluginTest.php

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

7-
namespace Magento\Checkout\Model\Cart\Access;
7+
namespace Magento\Quote\Model\Cart\Access;
88

99
class CartManagementPluginTest extends \PHPUnit_Framework_TestCase
1010
{
1111
/**
12-
* @var \Magento\Checkout\Model\Cart\Access\CartManagementPlugin
12+
* @var \Magento\Quote\Model\Cart\Access\CartManagementPlugin
1313
*/
1414
protected $model;
1515

dev/tests/unit/testsuite/Magento/Checkout/Model/Cart/Access/CartRepositoryPluginTest.php renamed to dev/tests/unit/testsuite/Magento/Quote/Model/Cart/Access/CartRepositoryPluginTest.php

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

7-
namespace Magento\Checkout\Model\Cart\Access;
7+
namespace Magento\Quote\Model\Cart\Access;
88

99
class CartRepositoryPluginTest extends \PHPUnit_Framework_TestCase
1010
{
1111
/**
12-
* @var \Magento\Checkout\Model\Cart\Access\CartRepositoryPlugin
12+
* @var \Magento\Quote\Model\Cart\Access\CartRepositoryPlugin
1313
*/
1414
protected $model;
1515

0 commit comments

Comments
 (0)