<?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.percentage" class="Sylius\Bundle\UiBundle\Twig\PercentageExtension" public="false">
            <tag name="twig.extension" />
        </service>

        <service id="sylius.twig.extension.form_test_attribute_array" class="Sylius\Bundle\UiBundle\Twig\TestFormAttributeExtension">
            <argument>%kernel.environment%</argument>
            <tag name="twig.extension" />
        </service>

        <service id="sylius.twig.extension.form_test_attribute_name" class="Sylius\Bundle\UiBundle\Twig\TestHtmlAttributeExtension">
            <argument>%kernel.environment%</argument>
            <tag name="twig.extension" />
        </service>

        <service id="sylius.twig.extension.sort_by" class="Sylius\Bundle\UiBundle\Twig\SortByExtension" public="false">
            <tag name="twig.extension" />
        </service>

        <service id="sylius.twig.extension.template_event" class="Sylius\Bundle\UiBundle\Twig\TemplateEventExtension" public="false">
            <argument type="service" id="Sylius\Bundle\UiBundle\Renderer\TemplateEventRendererInterface" />
            <tag name="twig.extension" />
        </service>

        <service id="sylius.twig.extension.merge_recursive" class="Sylius\Bundle\UiBundle\Twig\MergeRecursiveExtension">
            <tag name="twig.extension" />
        </service>

        <service id="Sylius\Bundle\UiBundle\Twig\LegacySonataBlockExtension">
            <argument>%sylius_ui.sonata_block.whitelisted_variables%</argument>
            <tag name="twig.extension" />
        </service>

        <service id="Sylius\Bundle\UiBundle\Twig\RedirectPathExtension">
            <argument type="service" id="Sylius\Bundle\UiBundle\Storage\FilterStorage" />
            <argument type="service" id="router" />
            <tag name="twig.extension" />
        </service>

        <service id="Sylius\Bundle\UiBundle\Storage\FilterStorage" public="false">
            <argument type="service" id="request_stack" />
        </service>
    </services>
</container>
