Skip to content

Commit

Permalink
Fix errors during compilation
Browse files Browse the repository at this point in the history
```
Errors during compilation:
	Adyen\Payment\Block\Redirect\Validate3d
		Incorrect dependency in class Adyen\Payment\Block\Redirect\Validate3d in /var/www/html/vendor/adyen/module-payment/Block/Redirect/Validate3d.php
\Magento\Framework\App\RequestInterface already exists in context object
Total Errors Count: 1
```
  • Loading branch information
Anton Evers authored Jun 23, 2016
1 parent d074fb4 commit 3a1000d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Block/Redirect/Validate3d.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
array $data = [],
\Magento\Sales\Model\OrderFactory $orderFactory,
\Magento\Checkout\Model\Session $checkoutSession,
\Magento\Framework\App\RequestInterface $request
\Magento\Checkout\Model\Session $checkoutSession
) {
$this->_orderFactory = $orderFactory;
$this->_checkoutSession = $checkoutSession;
$this->_request = $request;
$this->_request = $context->getRequest();
parent::__construct($context, $data);
$this->_getOrder();
}
Expand Down Expand Up @@ -135,4 +134,4 @@ protected function _getRequest()
return $this->_request;
}

}
}

0 comments on commit 3a1000d

Please sign in to comment.