sozo-design/Magento2_CurrencyConversionExtended

View on GitHub
etc/di.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
  ~ SOZO Design Ltd
  ~
  ~ NOTICE OF LICENSE
  ~
  ~ This source file is subject to the Open Software License (OSL 3.0)
  ~ that is bundled with this package in the file LICENSE.
  ~ It is also available through the world-wide-web at this URL:
  ~ http://opensource.org/licenses/osl-3.0.php
  ~
  ~ @category    SOZO Design Ltd
  ~ @package     Sozo_CurrencyConversionExtended
  ~ @copyright   Copyright (c) 2019 SOZO Design Ltd (https://sozodesign.com)
  ~ @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  -->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Directory\Model\Currency\Import\Config">
        <arguments>
            <argument name="servicesConfig" xsi:type="array">
                <item name="freeCurrencyConverter" xsi:type="array">
                    <item name="label" xsi:type="string">The Free Currency Converter API (SOZO)</item>
                    <item name="class" xsi:type="string">
                        Sozo\CurrencyConversionExtended\Model\Currency\Import\FreeCurrencyConverterApi
                    </item>
                </item>
                <item name="openRates" xsi:type="array">
                    <item name="label" xsi:type="string">OpenRates.io</item>
                    <item name="class" xsi:type="string">
                        Sozo\CurrencyConversionExtended\Model\Currency\Import\OpenRates
                    </item>
                </item>
            </argument>
        </arguments>
    </type>
</config>