Skip to content

Commit

Permalink
Merge pull request #57 from Fulmenef/master
Browse files Browse the repository at this point in the history
Fix di compilation
  • Loading branch information
thomas-kl1 authored Nov 20, 2020
2 parents f2f4b1a + b0ae39b commit 4773d85
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Controller/AbstractGuest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion Controller/Guest/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Controller/Guest/Erase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Controller/Guest/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Controller/Guest/UndoErase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 4773d85

Please sign in to comment.