-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
Copy pathdi.xml
65 lines (65 loc) · 3.93 KB
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<!-- @api Use item keys to create necessary service instance or add new services by extending the list -->
<type name="Magento\Directory\Model\Currency\Import\Config">
<arguments>
<argument name="servicesConfig" xsi:type="array">
<item name="fixerio" xsi:type="array">
<item name="label" xsi:type="string" translatable="true">Fixer.io (legacy)</item>
<item name="class" xsi:type="string">Magento\Directory\Model\Currency\Import\FixerIo</item>
</item>
<item name="fixerio_apilayer" xsi:type="array">
<item name="label" xsi:type="string" translatable="true">Fixer Api (APILayer)</item>
<item name="class" xsi:type="string">Magento\Directory\Model\Currency\Import\FixerIoApiLayer</item>
</item>
<item name="currencyconverterapi" xsi:type="array">
<item name="label" xsi:type="string" translatable="true">Currency Converter API</item>
<item name="class" xsi:type="string">Magento\Directory\Model\Currency\Import\CurrencyConverterApi</item>
</item>
</argument>
</arguments>
</type>
<type name="Magento\Framework\Locale\Resolver">
<arguments>
<argument name="defaultLocalePath" xsi:type="const">Magento\Directory\Helper\Data::XML_PATH_DEFAULT_LOCALE</argument>
</arguments>
</type>
<virtualType name="DirectoryHelperDataProxy" type="Magento\Directory\Helper\Data\Proxy">
<arguments>
<argument name="instanceName" xsi:type="string">Magento\Directory\Helper\Data</argument>
</arguments>
</virtualType>
<type name="Magento\Directory\Model\ResourceModel\Country\Collection" shared="false">
<arguments>
<argument name="helperData" xsi:type="object">DirectoryHelperDataProxy</argument>
<argument name="countriesWithNotRequiredStates" xsi:type="array">
<item name="FR" xsi:type="string">FR</item>
<item name="DE" xsi:type="string">DE</item>
<item name="AT" xsi:type="string">AT</item>
<item name="FI" xsi:type="string">FI</item>
<item name="BE" xsi:type="string">BE</item>
</argument>
</arguments>
</type>
<preference for="Magento\Directory\Model\Country\Postcode\ConfigInterface" type="Magento\Directory\Model\Country\Postcode\Config" />
<preference for="Magento\Directory\Model\Country\Postcode\ValidatorInterface" type="Magento\Directory\Model\Country\Postcode\Validator" />
<preference for="Magento\Directory\Api\CurrencyInformationAcquirerInterface" type="Magento\Directory\Model\CurrencyInformationAcquirer" />
<preference for="Magento\Directory\Api\Data\CurrencyInformationInterface" type="Magento\Directory\Model\Data\CurrencyInformation" />
<preference for="Magento\Directory\Api\Data\ExchangeRateInterface" type="Magento\Directory\Model\Data\ExchangeRate" />
<preference for="Magento\Directory\Api\CountryInformationAcquirerInterface" type="Magento\Directory\Model\CountryInformationAcquirer" />
<preference for="Magento\Directory\Api\Data\CountryInformationInterface" type="Magento\Directory\Model\Data\CountryInformation" />
<preference for="Magento\Directory\Api\Data\RegionInformationInterface" type="Magento\Directory\Model\Data\RegionInformation" />
<type name="Magento\Config\Model\Config\TypePool">
<arguments>
<argument name="sensitive" xsi:type="array">
<item name="currency/import/error_email" xsi:type="string">1</item>
</argument>
</arguments>
</type>
</config>