diff --git a/changelog/_unreleased/2020-11-27-fix-setpaymentorderroute.md b/changelog/_unreleased/2020-11-27-fix-setpaymentorderroute.md new file mode 100644 index 00000000000..7b653ca006b --- /dev/null +++ b/changelog/_unreleased/2020-11-27-fix-setpaymentorderroute.md @@ -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. diff --git a/src/Core/Checkout/Order/SalesChannel/SetPaymentOrderRoute.php b/src/Core/Checkout/Order/SalesChannel/SetPaymentOrderRoute.php index 937af00278d..9e149f505bc 100644 --- a/src/Core/Checkout/Order/SalesChannel/SetPaymentOrderRoute.php +++ b/src/Core/Checkout/Order/SalesChannel/SetPaymentOrderRoute.php @@ -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; @@ -35,7 +35,7 @@ class SetPaymentOrderRoute extends AbstractSetPaymentOrderRoute private $orderRepository; /** - * @var PaymentMethodRoute + * @var AbstractPaymentMethodRoute */ private $paymentRoute; @@ -52,7 +52,7 @@ class SetPaymentOrderRoute extends AbstractSetPaymentOrderRoute public function __construct( OrderService $orderService, EntityRepositoryInterface $orderRepository, - PaymentMethodRoute $paymentRoute, + AbstractPaymentMethodRoute $paymentRoute, StateMachineRegistry $stateMachineRegistry ) { $this->orderService = $orderService;