Skip to content

Commit

Permalink
Merge pull request #93 from mollie/1.4.1
Browse files Browse the repository at this point in the history
Fixed TimezoneInterface dependency #92
  • Loading branch information
Marvin-Magmodules authored Nov 15, 2018
2 parents ba5d119 + b868d18 commit 55ec239
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Block/Info/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Magento\Payment\Block\Info;
use Magento\Framework\View\Element\Template\Context;
use Magento\Framework\Stdlib\DateTime;
use Magento\Framework\Stdlib\DateTime\TimezoneInterface;
use Mollie\Payment\Helper\General as MollieHelper;
use Mollie\Payment\Model\Methods\Klarnapaylater;
use Mollie\Payment\Model\Methods\Klarnasliceit;
Expand All @@ -26,25 +25,23 @@ class Base extends Info
*/
private $mollieHelper;
/**
* @var TimezoneInterface
* @var DateTime\TimezoneInterface
*/
private $timezone;

/**
* Base constructor.
*
* @param Context $context
* @param MollieHelper $mollieHelper
* @param TimezoneInterface $timezone
* @param Context $context
* @param MollieHelper $mollieHelper
*/
public function __construct(
Context $context,
MollieHelper $mollieHelper,
TimezoneInterface $timezone
MollieHelper $mollieHelper
) {
parent::__construct($context);
$this->mollieHelper = $mollieHelper;
$this->timezone = $timezone;
$this->timezone = $context->getLocaleDate();
}

/**
Expand Down

0 comments on commit 55ec239

Please sign in to comment.