<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <service id="Shopware\Core\System\Currency\CurrencyDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\Currency\Aggregate\CurrencyCountryRounding\CurrencyCountryRoundingDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\Currency\SalesChannel\SalesChannelCurrencyDefinition">
            <tag name="shopware.sales_channel.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\Currency\Aggregate\CurrencyTranslation\CurrencyTranslationDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\Currency\CurrencyLoadSubscriber">
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="Shopware\Core\System\Currency\CurrencyValidator">
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="Shopware\Core\System\Currency\Rule\CurrencyRule">
            <tag name="shopware.rule.definition"/>
        </service>

        <service id="Shopware\Core\System\Currency\CurrencyFormatter" public="true">
            <argument type="service" id="Shopware\Core\System\Locale\LanguageLocaleCodeProvider"/>

            <tag name="kernel.reset" method="reset"/>
        </service>

        <service id="Shopware\Core\System\Currency\SalesChannel\CurrencyRoute" public="true">
            <argument type="service" id="sales_channel.currency.repository"/>
        </service>

        <service id="Shopware\Core\System\Currency\SalesChannel\CachedCurrencyRoute" decorates="Shopware\Core\System\Currency\SalesChannel\CurrencyRoute" decoration-priority="-1000" public="true">
            <argument type="service" id="Shopware\Core\System\Currency\SalesChannel\CachedCurrencyRoute.inner"/>
            <argument type="service" id="cache.object"/>
            <argument type="service" id="Shopware\Core\Framework\DataAbstractionLayer\Cache\EntityCacheKeyGenerator"/>
            <argument type="service" id="Shopware\Core\Framework\Adapter\Cache\CacheTracer"/>
            <argument type="service" id="event_dispatcher"/>
            <argument>%shopware.cache.invalidation.currency_route%</argument>
        </service>
    </services>
</container>
