Skip to content

Commit

Permalink
Re-add checkout session
Browse files Browse the repository at this point in the history
  • Loading branch information
fjbender committed Nov 6, 2023
1 parent d04fe1f commit 99e6343
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Controller/ApplePay/ShippingMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Mollie\Payment\Controller\ApplePay;

use Magento\Checkout\Model\Session as CheckoutSession;
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\Controller\ResultFactory;
Expand Down Expand Up @@ -33,16 +34,23 @@ class ShippingMethods extends Action
*/
private $shippingMethodManagement;

/**
* @var CheckoutSession
*/
private $checkoutSession;

public function __construct(
Context $context,
CartRepositoryInterface $cartRepository,
ShippingMethodManagementInterface $shippingMethodManagement,
CheckoutSession $checkoutSession,
GuestCartRepositoryInterface $guestCartRepository
) {
parent::__construct($context);
$this->shippingMethodManagement = $shippingMethodManagement;
$this->guestCartRepository = $guestCartRepository;
$this->cartRepository = $cartRepository;
$this->checkoutSession = $checkoutSession;
}

public function execute()
Expand Down

0 comments on commit 99e6343

Please sign in to comment.