diff --git a/Controller/AbstractGuest.php b/Controller/AbstractGuest.php index ec923fb..1bbe27f 100644 --- a/Controller/AbstractGuest.php +++ b/Controller/AbstractGuest.php @@ -10,6 +10,7 @@ use Magento\Framework\App\RequestInterface; use Magento\Framework\Controller\ResultFactory; use Magento\Framework\Controller\ResultInterface; +use Magento\Framework\Message\ManagerInterface; use Magento\Framework\Registry; use Magento\Sales\Api\Data\OrderInterface; use Magento\Sales\Controller\AbstractController\OrderLoaderInterface; @@ -30,13 +31,14 @@ abstract class AbstractGuest extends AbstractAction public function __construct( RequestInterface $request, ResultFactory $resultFactory, + ManagerInterface $messageManager, Config $config, OrderLoaderInterface $orderLoader, Registry $registry ) { $this->orderLoader = $orderLoader; $this->registry = $registry; - parent::__construct($request, $resultFactory, $config); + parent::__construct($request, $resultFactory, $messageManager, $config); } public function execute() diff --git a/Controller/Guest/Download.php b/Controller/Guest/Download.php index 0747dcf..db7fc23 100755 --- a/Controller/Guest/Download.php +++ b/Controller/Guest/Download.php @@ -16,6 +16,7 @@ use Magento\Framework\Controller\ResultFactory; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Exception\NoSuchEntityException; +use Magento\Framework\Message\ManagerInterface; use Magento\Framework\Phrase; use Magento\Framework\Registry; use Magento\Sales\Api\Data\OrderInterface; @@ -39,6 +40,7 @@ class Download extends AbstractGuest implements HttpGetActionInterface public function __construct( RequestInterface $request, ResultFactory $resultFactory, + ManagerInterface $messageManager, Config $config, OrderLoaderInterface $orderLoader, Registry $registry, @@ -47,7 +49,7 @@ public function __construct( ) { $this->fileFactory = $fileFactory; $this->exportRepository = $exportRepository; - parent::__construct($request, $resultFactory, $config, $orderLoader, $registry); + parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry); } protected function isAllowed(): bool diff --git a/Controller/Guest/Erase.php b/Controller/Guest/Erase.php index caca6c8..0883897 100644 --- a/Controller/Guest/Erase.php +++ b/Controller/Guest/Erase.php @@ -13,6 +13,7 @@ use Magento\Framework\Controller\Result\Redirect; use Magento\Framework\Controller\ResultFactory; use Magento\Framework\Exception\LocalizedException; +use Magento\Framework\Message\ManagerInterface; use Magento\Framework\Phrase; use Magento\Framework\Registry; use Magento\Sales\Controller\AbstractController\OrderLoaderInterface; @@ -37,6 +38,7 @@ class Erase extends AbstractGuest implements HttpPostActionInterface public function __construct( RequestInterface $request, ResultFactory $resultFactory, + ManagerInterface $messageManager, Config $config, OrderLoaderInterface $orderLoader, Registry $registry, @@ -45,7 +47,7 @@ public function __construct( ) { $this->action = $action; $this->actionContextBuilder = $actionContextBuilder; - parent::__construct($request, $resultFactory, $config, $orderLoader, $registry); + parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry); } protected function isAllowed(): bool diff --git a/Controller/Guest/Export.php b/Controller/Guest/Export.php index 8926515..4e12ef9 100755 --- a/Controller/Guest/Export.php +++ b/Controller/Guest/Export.php @@ -14,6 +14,7 @@ use Magento\Framework\Controller\ResultFactory; use Magento\Framework\Exception\AlreadyExistsException; use Magento\Framework\Exception\LocalizedException; +use Magento\Framework\Message\ManagerInterface; use Magento\Framework\Phrase; use Magento\Framework\Registry; use Magento\Sales\Controller\AbstractController\OrderLoaderInterface; @@ -38,6 +39,7 @@ class Export extends AbstractGuest implements HttpGetActionInterface public function __construct( RequestInterface $request, ResultFactory $resultFactory, + ManagerInterface $messageManager, Config $config, OrderLoaderInterface $orderLoader, Registry $registry, @@ -46,7 +48,7 @@ public function __construct( ) { $this->action = $action; $this->actionContextBuilder = $actionContextBuilder; - parent::__construct($request, $resultFactory, $config, $orderLoader, $registry); + parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry); } protected function isAllowed(): bool diff --git a/Controller/Guest/UndoErase.php b/Controller/Guest/UndoErase.php index c7b7657..76725fe 100644 --- a/Controller/Guest/UndoErase.php +++ b/Controller/Guest/UndoErase.php @@ -13,6 +13,7 @@ use Magento\Framework\Controller\Result\Redirect; use Magento\Framework\Controller\ResultFactory; use Magento\Framework\Exception\LocalizedException; +use Magento\Framework\Message\ManagerInterface; use Magento\Framework\Phrase; use Magento\Framework\Registry; use Magento\Sales\Controller\AbstractController\OrderLoaderInterface; @@ -37,6 +38,7 @@ class UndoErase extends AbstractGuest implements HttpPostActionInterface public function __construct( RequestInterface $request, ResultFactory $resultFactory, + ManagerInterface $messageManager, Config $config, OrderLoaderInterface $orderLoader, Registry $registry, @@ -45,7 +47,7 @@ public function __construct( ) { $this->action = $action; $this->actionContextBuilder = $actionContextBuilder; - parent::__construct($request, $resultFactory, $config, $orderLoader, $registry); + parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry); } protected function isAllowed(): bool