File: vendor/klarna/module-ordermanagement/etc/di.xml
<virtualType name="KlarnaCommandPool"
type="Magento\Payment\Gateway\Command\CommandPool">
<arguments>
<argument name="commands" xsi:type="array">
<item name="capture" xsi:type="string">
Klarna\Ordermanagement\Gateway\Command\Capture
</item>
<item name="cancel" xsi:type="string">
Klarna\Ordermanagement\Gateway\Command\Cancel
</item>
<item name="void" xsi:type="string">
Klarna\Ordermanagement\Gateway\Command\Cancel
</item>
<item name="refund" xsi:type="string">
Klarna\Ordermanagement\Gateway\Command\Refund
</item>
<item name="fetch_transaction_information"
xsi:type="string">
Klarna\Ordermanagement\Gateway\Command\FetchTransactionInfo
</item>
</argument>
</arguments>
</virtualType>
This is a virtual type configuration.
This configuration is for the
base area.
Base area configurations will apply to all the sub-applications.
This virtualType configuration tells the Object Manager when a user wants a virtual
KlarnaCommandPool
object that it should return a
Magento\Payment\Gateway\Command\CommandPool
object.
This configuration tells the Object Manager that when a user wants a
KlarnaCommandPool
object that the following arguments should be used in the foo object's constructor.
$commands =
[...items...];
|