Skip to content

Commit

Permalink
Merge pull request #1065 from BearGroup/release/5.6.0
Browse files Browse the repository at this point in the history
Release/5.6.0
  • Loading branch information
Christian Zichichi authored Jul 23, 2021
2 parents 0dd3e82 + 4227a4e commit 7fc0656
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
8 changes: 8 additions & 0 deletions Command/Async/ProcessCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ class ProcessCommand extends Command
*/
private $asyncUpdater;

/**
* ProcessCommand constructor.
*
* These dependencies are proxied, update di.xml if changed
* @param \Amazon\Pay\Model\ResourceModel\Async\CollectionFactory $asyncCollectionFactory
* @param \Amazon\Pay\Model\AsyncUpdater $asyncUpdater
* @param string|null $name
*/
public function __construct(
\Amazon\Pay\Model\ResourceModel\Async\CollectionFactory $asyncCollectionFactory,
\Amazon\Pay\Model\AsyncUpdater $asyncUpdater,
Expand Down
9 changes: 9 additions & 0 deletions Command/Sales/AmazonChargePermissionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ class AmazonChargePermissionCommand extends Command
*/
private $searchCriteriaBuilder;

/**
* AmazonChargePermissionCommand constructor.
*
* These dependencies are proxied, update di.xml if changed
* @param \Magento\Framework\App\State $state
* @param \Magento\Sales\Model\OrderRepository $orderRepository
* @param \Amazon\Pay\Model\Adapter\AmazonPayAdapter $amazonAdapter
* @param \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder
*/
public function __construct(
\Magento\Framework\App\State $state,
\Magento\Sales\Model\OrderRepository $orderRepository,
Expand Down
30 changes: 23 additions & 7 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,31 @@
</arguments>
</type>

<type name="Amazon\Pay\Command\Async\ProcessCommand">
<arguments>
<argument name="asyncCollectionFactory" xsi:type="object">Amazon\Pay\Model\ResourceModel\Async\CollectionFactory\Proxy</argument>
<argument name="asyncUpdater" xsi:type="object">Amazon\Pay\Model\AsyncUpdater\Proxy</argument>
</arguments>
</type>

<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="AmazonPayAsyncProcess" xsi:type="object">Amazon\Pay\Command\Async\ProcessCommand</item>
</argument>
</arguments>
</type>
<arguments>
<argument name="commands" xsi:type="array">
<item name="AmazonPayAsyncProcess" xsi:type="object">Amazon\Pay\Command\Async\ProcessCommand</item>
</argument>
</arguments>
</type>

<type name="Magento\Framework\Console\CommandList">
<type name="Amazon\Pay\Command\Sales\AmazonChargePermissionCommand">
<arguments>
<argument name="state" xsi:type="object">Magento\Framework\App\State\Proxy</argument>
<argument name="orderRepository" xsi:type="object">Magento\Sales\Model\OrderRepository\Proxy</argument>
<argument name="amazonAdapter" xsi:type="object">Amazon\Pay\Model\Adapter\AmazonPayAdapter\Proxy</argument>
<argument name="searchCriteriaBuilder" xsi:type="object">Magento\Framework\Api\SearchCriteriaBuilder\Proxy</argument>
</arguments>
</type>

<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="AmazonChargePermissionCommand" xsi:type="object">Amazon\Pay\Command\Sales\AmazonChargePermissionCommand</item>
Expand Down

0 comments on commit 7fc0656

Please sign in to comment.