From fe54bb8fe9a404b4abe8aff4d0f0553fabc3d114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Mon, 27 Apr 2020 13:35:02 +0200 Subject: [PATCH] MAG2-153 - Switched Proxy integration to di.xml usage --- Model/SimpleProtect/SimpleProtect.php | 6 +++--- etc/di.xml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Model/SimpleProtect/SimpleProtect.php b/Model/SimpleProtect/SimpleProtect.php index c470941..f272025 100644 --- a/Model/SimpleProtect/SimpleProtect.php +++ b/Model/SimpleProtect/SimpleProtect.php @@ -73,7 +73,7 @@ class SimpleProtect extends OrigSimpleProtect /** * Checkout session object * - * @var \Magento\Checkout\Model\Session\Proxy + * @var \Magento\Checkout\Model\Session */ protected $checkoutSession; @@ -89,13 +89,13 @@ class SimpleProtect extends OrigSimpleProtect * * @param \Payone\Core\Model\SimpleProtect\ProtectFunnel $protectFunnel * @param \Magento\Framework\App\ResourceConnection $resource - * @param \Magento\Checkout\Model\Session\Proxy $checkoutSession + * @param \Magento\Checkout\Model\Session $checkoutSession * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig */ public function __construct( \Payone\Core\Model\SimpleProtect\ProtectFunnel $protectFunnel, \Magento\Framework\App\ResourceConnection $resource, - \Magento\Checkout\Model\Session\Proxy $checkoutSession, + \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig ) { parent::__construct($protectFunnel); diff --git a/etc/di.xml b/etc/di.xml index ed47ff4..e9f2bdf 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -26,4 +26,9 @@ --> + + + Magento\Checkout\Model\Session\Proxy + +