services:
  _defaults:
    public: true

  prestashop.adapter.data_provider.country:
    alias: PrestaShop\PrestaShop\Adapter\Country\CountryDataProvider

  PrestaShop\PrestaShop\Adapter\Country\CountryDataProvider:
    public: false
    autowire: true

  PrestaShop\PrestaShop\Adapter\Currency\CurrencyDataProvider:
    arguments:
      - "@prestashop.adapter.legacy.configuration"
      - "@=service('prestashop.adapter.legacy.context').getContext().shop?service('prestashop.adapter.legacy.context').getContext().shop.id"

  prestashop.adapter.data_provider.currency:
    alias: PrestaShop\PrestaShop\Adapter\Currency\CurrencyDataProvider

  PrestaShop\PrestaShop\Core\Currency\CurrencyDataProviderInterface: '@PrestaShop\PrestaShop\Adapter\Currency\CurrencyDataProvider'
