diff --git a/Model/MollieConfigProvider.php b/Model/MollieConfigProvider.php index 6ceca07535f..1fe2abd595c 100644 --- a/Model/MollieConfigProvider.php +++ b/Model/MollieConfigProvider.php @@ -8,6 +8,7 @@ use Magento\Checkout\Model\ConfigProviderInterface; use Magento\Checkout\Model\Session as CheckoutSession; +use Magento\Framework\App\Request\Http; use Magento\Framework\Locale\Resolver; use Magento\Framework\View\Asset\Repository as AssetRepository; use Magento\Payment\Helper\Data as PaymentHelper; @@ -37,6 +38,10 @@ class MollieConfigProvider implements ConfigProviderInterface * @var AssetRepository */ private $assetRepository; + /** + * @var Http + */ + private $request; /** * @var MollieHelper */ @@ -65,7 +70,6 @@ class MollieConfigProvider implements ConfigProviderInterface * @var GetIssuers */ private $getIssuers; - /** * @var StoreManagerInterface */ @@ -84,6 +88,7 @@ class MollieConfigProvider implements ConfigProviderInterface private $mollieApiClient; public function __construct( + Http $request, MollieHelper $mollieHelper, PaymentHelper $paymentHelper, CheckoutSession $checkoutSession, @@ -96,6 +101,7 @@ public function __construct( SupportedNetworks $supportedNetworks, MollieApiClient $mollieApiClient ) { + $this->request = $request; $this->mollieHelper = $mollieHelper; $this->paymentHelper = $paymentHelper; $this->checkoutSession = $checkoutSession; diff --git a/etc/db_schema.xml b/etc/db_schema.xml index 170574dbb4a..20d8cc52606 100644 --- a/etc/db_schema.xml +++ b/etc/db_schema.xml @@ -1,6 +1,6 @@ - +