Skip to content

Commit 6db1c7f

Browse files
authored
Merge pull request #24 from satispay/marketplace-installation-fix
Use proxy in CompleteUnhandledTransaction command constructor
2 parents 112cc57 + 2b21ff9 commit 6db1c7f

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Diff for: Model/FinalizePayment.php

-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ class FinalizePayment
1212
protected $orderSender;
1313

1414
/**
15-
* Order constructor.
16-
* @param \Magento\Framework\App\Action\Context $context
1715
* @param \Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender
1816
* @param \Satispay\Satispay\Model\Method\Satispay $satispay
1917
*/
2018
public function __construct(
21-
\Magento\Framework\App\Action\Context $context,
2219
\Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender,
2320
\Satispay\Satispay\Model\Method\Satispay $satispay
2421
) {

Diff for: Model/FinalizeUnhandledOrders.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ class FinalizeUnhandledOrders
4848
protected $logger;
4949

5050
/**
51-
* Order constructor.
52-
* @param \Magento\Framework\App\Action\Context $context
53-
* @param \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory
51+
* @param \Magento\Sales\Api\OrderRepositoryInterface $orderRepository
52+
* @param \Magento\Sales\Api\OrderStatusHistoryRepositoryInterface $orderStatusRepository
53+
* @param \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder
5454
* @param \Satispay\Satispay\Model\Method\Satispay $satispay
5555
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
5656
* @param \Satispay\Satispay\Model\Config $config
5757
* @param FinalizePayment $finalizePaymentService
58+
* @param LoggerInterface $logger
5859
*/
5960
public function __construct(
60-
\Magento\Framework\App\Action\Context $context,
6161
\Magento\Sales\Api\OrderRepositoryInterface $orderRepository,
6262
\Magento\Sales\Api\OrderStatusHistoryRepositoryInterface $orderStatusRepository,
6363
\Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder,

Diff for: etc/di.xml

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
</arguments>
99
</type>
1010

11+
<type name="Satispay\Satispay\Command\CompleteUnhandledTransaction">
12+
<arguments>
13+
<argument name="finalizeUnhandledOrdersService" xsi:type="object">Satispay\Satispay\Model\FinalizeUnhandledOrders\Proxy</argument>
14+
</arguments>
15+
</type>
16+
1117
<!-- Logger -->
1218
<virtualType name="Satispay\Satispay\Logger\Handler" type="Magento\Framework\Logger\Handler\Base">
1319
<arguments>

0 commit comments

Comments
 (0)