<?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 https://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <defaults public="false" />

        <service id="templating.engine.php" class="Symfony\Bundle\FrameworkBundle\Templating\PhpEngine">
            <argument type="service" id="templating.name_parser" />
            <argument type="service" id="templating.engine.php.helpers_locator" />
            <argument type="service" id="templating.loader" />
            <argument type="service" id="templating.globals" />
            <call method="setCharset"><argument>%kernel.charset%</argument></call>
        </service>

        <service id="templating.engine.php.helpers_locator">
            <tag name="container.service_locator" />
            <argument type="collection" />
        </service>

        <service id="templating.helper.slots" class="Symfony\Component\Templating\Helper\SlotsHelper">
            <tag name="templating.helper" alias="slots" />
        </service>

        <service id="templating.helper.request" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\RequestHelper">
            <tag name="templating.helper" alias="request" />
            <argument type="service" id="request_stack" />
        </service>

        <service id="templating.helper.session" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper">
            <tag name="templating.helper" alias="session" />
            <argument type="service" id="request_stack" />
        </service>

        <service id="templating.helper.router" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper">
            <tag name="templating.helper" alias="router" />
            <argument type="service" id="router" />
        </service>

        <service id="templating.helper.assets" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper">
            <tag name="templating.helper" alias="assets" />
            <argument /> <!-- packages -->
        </service>

        <service id="templating.helper.actions" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\ActionsHelper">
            <tag name="templating.helper" alias="actions" />
            <argument type="service" id="fragment.handler" />
        </service>

        <service id="templating.helper.code" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\CodeHelper">
            <tag name="templating.helper" alias="code" />
            <argument type="service" id="debug.file_link_formatter"></argument>
            <argument>%kernel.project_dir%</argument>
            <argument>%kernel.charset%</argument>
        </service>

        <service id="templating.helper.translator" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper">
            <tag name="templating.helper" alias="translator" />
            <argument type="service" id="translator" />
        </service>

        <service id="templating.helper.form" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\FormHelper">
            <tag name="templating.helper" alias="form" />
            <argument type="service" id="templating.form.renderer" />
        </service>

        <service id="templating.helper.stopwatch" class="Symfony\Bundle\FrameworkBundle\Templating\Helper\StopwatchHelper">
            <tag name="templating.helper" alias="stopwatch" />
            <argument type="service" id="debug.stopwatch" on-invalid="ignore" />
        </service>

        <service id="templating.form.engine" class="Symfony\Component\Form\Extension\Templating\TemplatingRendererEngine">
            <argument type="service" id="templating.engine.php" />
            <argument>%templating.helper.form.resources%</argument>
        </service>

        <service id="templating.form.renderer" class="Symfony\Component\Form\FormRenderer">
            <argument type="service" id="templating.form.engine" />
            <argument type="service" id="security.csrf.token_manager" on-invalid="null" />
        </service>

        <service id="templating.globals" class="Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables">
            <argument type="service" id="service_container" />
        </service>
    </services>
</container>
