Skip to content

Commit

Permalink
Re-add Shipping Method Management
Browse files Browse the repository at this point in the history
  • Loading branch information
fjbender committed Nov 6, 2023
1 parent e703b45 commit d04fe1f
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 @@ -12,6 +12,7 @@
use Magento\Quote\Api\CartRepositoryInterface;
use Magento\Quote\Api\Data\CartInterface;
use Magento\Quote\Api\GuestCartRepositoryInterface;
use Magento\Quote\Api\ShippingMethodManagementInterface;
use Magento\Quote\Model\Quote\Address;
use Magento\Quote\Model\Quote\Address\Total as AddressTotal;

Expand All @@ -27,12 +28,19 @@ class ShippingMethods extends Action
*/
private $guestCartRepository;

/**
* @var ShippingMethodManagementInterface
*/
private $shippingMethodManagement;

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

0 comments on commit d04fe1f

Please sign in to comment.