We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8c0af commit b2edfa7Copy full SHA for b2edfa7
app/code/Magento/Sales/Controller/AbstractController/Reorder.php
@@ -7,6 +7,7 @@
7
namespace Magento\Sales\Controller\AbstractController;
8
9
use Magento\Framework\App\Action;
10
+use Magento\Framework\App\ObjectManager;
11
use Magento\Framework\Data\Form\FormKey\Validator;
12
use Magento\Framework\Registry;
13
use Magento\Framework\Exception\NotFoundException;
@@ -42,7 +43,7 @@ public function __construct(
42
43
) {
44
$this->orderLoader = $orderLoader;
45
$this->_coreRegistry = $registry;
- $this->formKeyValidator = $formKeyValidator;
46
+ $this->formKeyValidator = $formKeyValidator ?: ObjectManager::getInstance()->create(Validator::class);
47
parent::__construct($context);
48
}
49
0 commit comments