Skip to content

Commit

Permalink
Fixed di:compile issues (#84)
Browse files Browse the repository at this point in the history
- fixed issue with dependency generations
  • Loading branch information
ed007m authored Dec 3, 2020
1 parent f140477 commit e02f3d2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions Controller/Payment/Klarna/InitRegular.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use Magento\Quote\Api\CartRepositoryInterface;
use Magento\Quote\Api\Data\CartInterface;
use Magento\Quote\Model\Quote;
use Magento\Quote\Model\QuoteIdToMaskedQuoteIdInterface;
use Magento\Quote\Model\QuoteIdMaskFactory;
use Psr\Log\LoggerInterface;
use Vipps\Payment\Api\CommandManagerInterface;
use Vipps\Payment\Gateway\Request\Initiate\InitiateBuilderInterface;
Expand Down Expand Up @@ -92,9 +92,9 @@ class InitRegular extends Action
private $paymentInformationManagement;

/**
* @var QuoteIdToMaskedQuoteIdInterface
* @var QuoteIdMaskFactory
*/
private $quoteIdToMaskedQuoteId;
private $quoteIdMaskFactory;

/**
* InitRegular constructor.
Expand All @@ -109,7 +109,7 @@ class InitRegular extends Action
* @param CartManagementInterface $cartManagement
* @param GuestPaymentInformationManagementInterface $guestPaymentInformationManagement
* @param PaymentInformationManagementInterface $paymentInformationManagement
* @param QuoteIdToMaskedQuoteIdInterface $quoteIdToMaskedQuoteId
* @param QuoteIdMaskFactory $quoteIdMaskFactory
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
Expand All @@ -124,7 +124,7 @@ public function __construct(
CartManagementInterface $cartManagement,
GuestPaymentInformationManagementInterface $guestPaymentInformationManagement,
PaymentInformationManagementInterface $paymentInformationManagement,
QuoteIdToMaskedQuoteIdInterface $quoteIdToMaskedQuoteId
QuoteIdMaskFactory $quoteIdMaskFactory
) {
parent::__construct($context);
$this->commandManager = $commandManager;
Expand All @@ -136,7 +136,7 @@ public function __construct(
$this->cartManagement = $cartManagement;
$this->guestPaymentInformationManagement = $guestPaymentInformationManagement;
$this->paymentInformationManagement = $paymentInformationManagement;
$this->quoteIdToMaskedQuoteId = $quoteIdToMaskedQuoteId;
$this->quoteIdMaskFactory = $quoteIdMaskFactory;
}

/**
Expand Down Expand Up @@ -204,17 +204,17 @@ private function placeOrder(CartInterface $quote)

$this->setCheckoutMethod($quote);

$maskedQuoteId = $this->quoteIdToMaskedQuoteId->execute($quote->getId());
$quoteIdMask = $this->quoteIdMaskFactory->create()->load($quote->getId(), 'quote_id');
switch ($quote->getCheckoutMethod()) {
case Onepage::METHOD_CUSTOMER:
$this->paymentInformationManagement->savePaymentInformationAndPlaceOrder(
$maskedQuoteId,
$quoteIdMask->getMaskedId(),
$quote->getPayment()
);
break;
case Onepage::METHOD_GUEST:
$this->guestPaymentInformationManagement->savePaymentInformationAndPlaceOrder(
$maskedQuoteId,
$quoteIdMask->getMaskedId(),
$quote->getCustomerEmail(),
$quote->getPayment()
);
Expand Down
6 changes: 3 additions & 3 deletions Model/LockManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface LockManagerInterface
* @return bool
* @api
*/
public function lock(string $name, int $timeout = -1): bool;
public function lock(string $name, int $timeout = -1);

/**
* Releases a lock
Expand All @@ -40,7 +40,7 @@ public function lock(string $name, int $timeout = -1): bool;
* @return bool
* @api
*/
public function unlock(string $name): bool;
public function unlock(string $name);

/**
* Tests if lock is set
Expand All @@ -49,5 +49,5 @@ public function unlock(string $name): bool;
* @return bool
* @api
*/
public function isLocked(string $name): bool;
public function isLocked(string $name);
}
2 changes: 1 addition & 1 deletion Model/ModuleMetadataInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ interface ModuleMetadataInterface
*
* @return array
*/
public function addOptionalHeaders(array $headers): array;
public function addOptionalHeaders(array $headers);
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "magento2-module",
"description": "Vipps Payment Method",
"license": "proprietary",
"version": "2.2.11",
"version": "2.2.12",
"require": {
"magento/framework": "101.0.*",
"magento/module-sales": "101.0.*",
Expand Down

0 comments on commit e02f3d2

Please sign in to comment.