<?xml version="1.0" encoding="UTF-8"?>

<!--

 This file is part of the Sylius package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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>
        <defaults public="true" />

        <service id="Sylius\Bundle\CoreBundle\CatalogPromotion\Validator\CatalogPromotionAction\FixedDiscountActionValidator">
            <argument type="service" id="sylius.repository.channel" />
            <argument type="service" id="Sylius\Bundle\CoreBundle\SectionResolver\SectionProviderInterface" />
            <tag name="sylius.catalog_promotion.action_validator" key="fixed_discount"/>
        </service>

        <service id="Sylius\Bundle\CoreBundle\CatalogPromotion\Validator\CatalogPromotionScope\ForProductsScopeValidator">
            <argument type="service" id="sylius.repository.product" />
            <tag name="sylius.catalog_promotion.scope_validator" key="for_products"/>
        </service>

        <service id="Sylius\Bundle\CoreBundle\CatalogPromotion\Validator\CatalogPromotionScope\ForTaxonsScopeValidator">
            <argument type="service" id="sylius.repository.taxon" />
            <tag name="sylius.catalog_promotion.scope_validator" key="for_taxons"/>
        </service>

        <service id="Sylius\Bundle\CoreBundle\CatalogPromotion\Validator\CatalogPromotionScope\ForVariantsScopeValidator">
            <argument type="service" id="sylius.repository.product_variant" />
            <tag name="sylius.catalog_promotion.scope_validator" key="for_variants"/>
        </service>
    </services>
</container>
