Skip to content

Commit 4773d85

Browse files
authored
Merge pull request #57 from Fulmenef/master
Fix di compilation
2 parents f2f4b1a + b0ae39b commit 4773d85

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

Controller/AbstractGuest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Framework\App\RequestInterface;
1111
use Magento\Framework\Controller\ResultFactory;
1212
use Magento\Framework\Controller\ResultInterface;
13+
use Magento\Framework\Message\ManagerInterface;
1314
use Magento\Framework\Registry;
1415
use Magento\Sales\Api\Data\OrderInterface;
1516
use Magento\Sales\Controller\AbstractController\OrderLoaderInterface;
@@ -30,13 +31,14 @@ abstract class AbstractGuest extends AbstractAction
3031
public function __construct(
3132
RequestInterface $request,
3233
ResultFactory $resultFactory,
34+
ManagerInterface $messageManager,
3335
Config $config,
3436
OrderLoaderInterface $orderLoader,
3537
Registry $registry
3638
) {
3739
$this->orderLoader = $orderLoader;
3840
$this->registry = $registry;
39-
parent::__construct($request, $resultFactory, $config);
41+
parent::__construct($request, $resultFactory, $messageManager, $config);
4042
}
4143

4244
public function execute()

Controller/Guest/Download.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Magento\Framework\Controller\ResultFactory;
1717
use Magento\Framework\Exception\LocalizedException;
1818
use Magento\Framework\Exception\NoSuchEntityException;
19+
use Magento\Framework\Message\ManagerInterface;
1920
use Magento\Framework\Phrase;
2021
use Magento\Framework\Registry;
2122
use Magento\Sales\Api\Data\OrderInterface;
@@ -39,6 +40,7 @@ class Download extends AbstractGuest implements HttpGetActionInterface
3940
public function __construct(
4041
RequestInterface $request,
4142
ResultFactory $resultFactory,
43+
ManagerInterface $messageManager,
4244
Config $config,
4345
OrderLoaderInterface $orderLoader,
4446
Registry $registry,
@@ -47,7 +49,7 @@ public function __construct(
4749
) {
4850
$this->fileFactory = $fileFactory;
4951
$this->exportRepository = $exportRepository;
50-
parent::__construct($request, $resultFactory, $config, $orderLoader, $registry);
52+
parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry);
5153
}
5254

5355
protected function isAllowed(): bool

Controller/Guest/Erase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\Framework\Controller\Result\Redirect;
1414
use Magento\Framework\Controller\ResultFactory;
1515
use Magento\Framework\Exception\LocalizedException;
16+
use Magento\Framework\Message\ManagerInterface;
1617
use Magento\Framework\Phrase;
1718
use Magento\Framework\Registry;
1819
use Magento\Sales\Controller\AbstractController\OrderLoaderInterface;
@@ -37,6 +38,7 @@ class Erase extends AbstractGuest implements HttpPostActionInterface
3738
public function __construct(
3839
RequestInterface $request,
3940
ResultFactory $resultFactory,
41+
ManagerInterface $messageManager,
4042
Config $config,
4143
OrderLoaderInterface $orderLoader,
4244
Registry $registry,
@@ -45,7 +47,7 @@ public function __construct(
4547
) {
4648
$this->action = $action;
4749
$this->actionContextBuilder = $actionContextBuilder;
48-
parent::__construct($request, $resultFactory, $config, $orderLoader, $registry);
50+
parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry);
4951
}
5052

5153
protected function isAllowed(): bool

Controller/Guest/Export.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Magento\Framework\Controller\ResultFactory;
1515
use Magento\Framework\Exception\AlreadyExistsException;
1616
use Magento\Framework\Exception\LocalizedException;
17+
use Magento\Framework\Message\ManagerInterface;
1718
use Magento\Framework\Phrase;
1819
use Magento\Framework\Registry;
1920
use Magento\Sales\Controller\AbstractController\OrderLoaderInterface;
@@ -38,6 +39,7 @@ class Export extends AbstractGuest implements HttpGetActionInterface
3839
public function __construct(
3940
RequestInterface $request,
4041
ResultFactory $resultFactory,
42+
ManagerInterface $messageManager,
4143
Config $config,
4244
OrderLoaderInterface $orderLoader,
4345
Registry $registry,
@@ -46,7 +48,7 @@ public function __construct(
4648
) {
4749
$this->action = $action;
4850
$this->actionContextBuilder = $actionContextBuilder;
49-
parent::__construct($request, $resultFactory, $config, $orderLoader, $registry);
51+
parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry);
5052
}
5153

5254
protected function isAllowed(): bool

Controller/Guest/UndoErase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\Framework\Controller\Result\Redirect;
1414
use Magento\Framework\Controller\ResultFactory;
1515
use Magento\Framework\Exception\LocalizedException;
16+
use Magento\Framework\Message\ManagerInterface;
1617
use Magento\Framework\Phrase;
1718
use Magento\Framework\Registry;
1819
use Magento\Sales\Controller\AbstractController\OrderLoaderInterface;
@@ -37,6 +38,7 @@ class UndoErase extends AbstractGuest implements HttpPostActionInterface
3738
public function __construct(
3839
RequestInterface $request,
3940
ResultFactory $resultFactory,
41+
ManagerInterface $messageManager,
4042
Config $config,
4143
OrderLoaderInterface $orderLoader,
4244
Registry $registry,
@@ -45,7 +47,7 @@ public function __construct(
4547
) {
4648
$this->action = $action;
4749
$this->actionContextBuilder = $actionContextBuilder;
48-
parent::__construct($request, $resultFactory, $config, $orderLoader, $registry);
50+
parent::__construct($request, $resultFactory, $messageManager, $config, $orderLoader, $registry);
4951
}
5052

5153
protected function isAllowed(): bool

0 commit comments

Comments
 (0)