<?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.twig.extension.sylius_bundle_loaded_checker" class="Sylius\Bundle\CoreBundle\Twig\BundleLoadedCheckerExtension">
            <argument>%kernel.bundles%</argument>
            <tag name="twig.extension" />
        </service>

        <service id="sylius.templating.helper.product_variants_prices" class="Sylius\Bundle\CoreBundle\Templating\Helper\ProductVariantsPricesHelper">
            <argument type="service" id="sylius.provider.product_variants_prices" />
            <tag name="templating.helper" alias="sylius_product_variants_prices" />
        </service>

        <service id="sylius.templating.helper.price" class="Sylius\Bundle\CoreBundle\Templating\Helper\PriceHelper" lazy="true">
            <argument type="service" id="sylius.calculator.product_variant_price" />
            <tag name="templating.helper" alias="sylius_calculate_price" />
        </service>

        <service id="sylius.twig.extension.price" class="Sylius\Bundle\CoreBundle\Twig\PriceExtension" public="false">
            <argument type="service" id="sylius.templating.helper.price" />
            <tag name="twig.extension" />
        </service>

        <service id="sylius.templating.helper.variant_resolver" class="Sylius\Bundle\CoreBundle\Templating\Helper\VariantResolverHelper">
            <argument type="service" id="Sylius\Component\Product\Resolver\ProductVariantResolverInterface" />
            <tag name="templating.helper" alias="sylius_resolve_variant" />
        </service>

        <service id="sylius.twig.extension.variant_resolver" class="Sylius\Bundle\CoreBundle\Twig\VariantResolverExtension" public="false">
            <argument type="service" id="sylius.templating.helper.variant_resolver" />
            <tag name="twig.extension" />
        </service>

        <service id="sylius.templating.helper.checkout_steps" class="Sylius\Bundle\CoreBundle\Templating\Helper\CheckoutStepsHelper" lazy="true">
            <argument type="service" id="sylius.checker.order_payment_method_selection_requirement" />
            <argument type="service" id="sylius.checker.order_shipping_method_selection_requirement" />
            <tag name="templating.helper" alias="sylius_checkout_steps" />
        </service>

        <service id="sylius.twig.extension.channel_url" class="Sylius\Bundle\CoreBundle\Twig\ChannelUrlExtension" public="false">
            <argument type="service" id="sylius.context.channel" />
            <argument type="service" id="url_helper" />
            <argument>%sylius.unsecured_urls%</argument>
            <tag name="twig.extension" />
        </service>

        <service id="sylius.twig.extension.product_translation" class="Sylius\Bundle\CoreBundle\Twig\ProductTranslationExtension" public="false">
            <argument type="service" id="Sylius\Bundle\CoreBundle\Provider\ChannelBasedProductTranslationProviderInterface" />
            <tag name="twig.extension" />
        </service>
    </services>
</container>
