Skip to content

Commit

Permalink
Removed construct inserts
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Jun 4, 2021
1 parent f4120d4 commit ddfc289
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Model/Paymentmethod/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
use Magento\Framework\Data\Collection\AbstractDb;
use Magento\Framework\Model\Context;
use Magento\Framework\Model\ResourceModel\AbstractResource;
use Magento\Framework\Message\ManagerInterface;
use Magento\Framework\Registry;
use Magento\Payment\Helper\Data;
use Magento\Payment\Model\InfoInterface;
use Magento\Payment\Model\Method\AbstractMethod;
use Magento\Payment\Model\Method\Logger;
use Psr\Log\LoggerInterface;
use Magento\Sales\Model\Order;
use Magento\Sales\Model\OrderRepository;
use Paynl\Payment\Model\Config;
Expand Down Expand Up @@ -82,22 +80,21 @@ public function __construct(
Config $paynlConfig,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
array $data = [],
ManagerInterface $messageManager,
LoggerInterface $logger
array $data = []
)
{
parent::__construct(
$context, $registry, $extensionFactory, $customAttributeFactory,
$paymentData, $scopeConfig, $methodLogger, $resource, $resourceCollection, $data);

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$this->messageManager = $messageManager;

$this->messageManager = $objectManager->get(\Magento\Framework\Message\ManagerInterface::class);
$this->helper = $objectManager->create('Paynl\Payment\Helper\PayHelper');
$this->paynlConfig = $paynlConfig;
$this->orderRepository = $orderRepository;
$this->orderConfig = $orderConfig;
$this->logger = $logger;
$this->logger = $objectManager->get(\Psr\Log\LoggerInterface::class);
}

protected function getState($status)
Expand Down

0 comments on commit ddfc289

Please sign in to comment.