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

        <service id="templating.engine.delegating" class="Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine">
            <argument type="service" id="service_container" />
            <argument type="collection" /> <!-- engines -->
        </service>

        <service id="templating.name_parser" class="Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser" public="true">
            <argument type="service" id="kernel" />
        </service>

        <service id="templating.filename_parser" class="Symfony\Bundle\FrameworkBundle\Templating\TemplateFilenameParser" public="true" />

        <service id="templating.locator" class="Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator">
            <argument type="service" id="file_locator" />
            <argument>%kernel.cache_dir%</argument>
        </service>

        <service id="templating.finder" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder">
            <argument type="service" id="kernel" />
            <argument type="service" id="templating.filename_parser" />
            <argument>%kernel.root_dir%/Resources</argument>
        </service>

        <service id="templating.cache_warmer.template_paths" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer">
            <tag name="kernel.cache_warmer" priority="20" />
            <argument type="service" id="templating.finder" />
            <argument type="service" id="templating.locator" />
        </service>

        <service id="templating.loader.filesystem" class="Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader">
            <argument type="service" id="templating.locator" />
        </service>

        <service id="templating.loader.cache" class="Symfony\Component\Templating\Loader\CacheLoader">
            <argument type="service" id="templating.loader.wrapped" />
            <argument>%templating.loader.cache.path%</argument>
        </service>

        <service id="templating.loader.chain" class="Symfony\Component\Templating\Loader\ChainLoader">
        </service>

        <service id="templating.loader" alias="templating.loader.filesystem" public="true" />
    </services>
</container>
