Skip to content

Commit

Permalink
NEXT-12457 - Replaced PaymentMethodRoute class with AbstractPaymentMe…
Browse files Browse the repository at this point in the history
…thodRoute

fixes shopware#1239
  • Loading branch information
momocode-de authored and Bastian Neumann committed Nov 30, 2020
1 parent 5129b20 commit 83371c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions changelog/_unreleased/2020-11-27-fix-setpaymentorderroute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Replaced PaymentMethodRoute class with AbstractPaymentMethodRoute
issue: NEXT-12457
author_github: @momocode-de
---
# Core
* Changed `PaymentMethodRoute` class to `AbstractPaymentMethodRoute` in `Shopware\Core\Checkout\Order\SalesChannel\SetPaymentOrderRoute` to ensure the extendability of the `PaymentMethodRoute` components.
6 changes: 3 additions & 3 deletions src/Core/Checkout/Order/SalesChannel/SetPaymentOrderRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Shopware\Core\Checkout\Order\Aggregate\OrderTransaction\OrderTransactionStates;
use Shopware\Core\Checkout\Order\OrderEntity;
use Shopware\Core\Checkout\Payment\Exception\UnknownPaymentMethodException;
use Shopware\Core\Checkout\Payment\SalesChannel\PaymentMethodRoute;
use Shopware\Core\Checkout\Payment\SalesChannel\AbstractPaymentMethodRoute;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
Expand All @@ -35,7 +35,7 @@ class SetPaymentOrderRoute extends AbstractSetPaymentOrderRoute
private $orderRepository;

/**
* @var PaymentMethodRoute
* @var AbstractPaymentMethodRoute
*/
private $paymentRoute;

Expand All @@ -52,7 +52,7 @@ class SetPaymentOrderRoute extends AbstractSetPaymentOrderRoute
public function __construct(
OrderService $orderService,
EntityRepositoryInterface $orderRepository,
PaymentMethodRoute $paymentRoute,
AbstractPaymentMethodRoute $paymentRoute,
StateMachineRegistry $stateMachineRegistry
) {
$this->orderService = $orderService;
Expand Down

0 comments on commit 83371c9

Please sign in to comment.