Skip to content

Commit b947e3f

Browse files
committed
MAGETWO-32775: Prepare pull request for Checkout related modules MSC:
-fix constructors
1 parent 3bbf031 commit b947e3f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,4 @@
2323
<argument name="storage" xsi:type="object">Magento\Checkout\Model\Session\Storage</argument>
2424
</arguments>
2525
</type>
26-
<preference for="Magento\Checkout\Service\V1\Cart\ReadServiceInterface" type="Magento\Checkout\Service\V1\Cart\ReadService" />
27-
<preference for="Magento\Checkout\Service\V1\Cart\TotalsServiceInterface" type="Magento\Checkout\Service\V1\Cart\TotalsService" />
28-
<preference for="\Magento\Checkout\Service\V1\Cart\WriteServiceInterface" type="Magento\Checkout\Service\V1\Cart\WriteService" />
2926
</config>

app/code/Magento/Checkout/etc/webapi_soap/di.xml

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

app/code/Magento/Quote/Model/Quote.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\Quote\Model\Quote\Address;
1212
use Magento\Sales\Model\Resource;
1313
use Magento\Sales\Model\Status;
14+
use Magento\Framework\Api\AttributeDataBuilder;
1415

1516
/**
1617
* Quote model
@@ -331,7 +332,7 @@ class Quote extends AbstractExtensibleModel implements \Magento\Quote\Api\Data\C
331332
* @param \Magento\Framework\Model\Context $context
332333
* @param \Magento\Framework\Registry $registry
333334
* @param \Magento\Framework\Api\MetadataServiceInterface $metadataService
334-
* @param \Magento\Framework\Api\AttributeDataBuilder $attributeDataBuilder
335+
* @param AttributeDataBuilder $customAttributeBuilder
335336
* @param QuoteValidator $quoteValidator
336337
* @param \Magento\Catalog\Helper\Product $catalogProduct
337338
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
@@ -368,7 +369,7 @@ public function __construct(
368369
\Magento\Framework\Model\Context $context,
369370
\Magento\Framework\Registry $registry,
370371
\Magento\Framework\Api\MetadataServiceInterface $metadataService,
371-
\Magento\Framework\Api\AttributeDataBuilder $attributeDataBuilder,
372+
AttributeDataBuilder $customAttributeBuilder,
372373
\Magento\Quote\Model\QuoteValidator $quoteValidator,
373374
\Magento\Catalog\Helper\Product $catalogProduct,
374375
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
@@ -433,7 +434,7 @@ public function __construct(
433434
$context,
434435
$registry,
435436
$metadataService,
436-
$attributeDataBuilder,
437+
$customAttributeBuilder,
437438
$resource,
438439
$resourceCollection,
439440
$data

0 commit comments

Comments
 (0)