<?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">

    <parameters>
        <parameter key="assetic.helper.dynamic.class">Symfony\Bundle\AsseticBundle\Templating\DynamicAsseticHelper</parameter>
        <parameter key="assetic.helper.static.class">Symfony\Bundle\AsseticBundle\Templating\StaticAsseticHelper</parameter>
        <parameter key="assetic.php_formula_loader.class">Symfony\Bundle\AsseticBundle\Factory\Loader\AsseticHelperFormulaLoader</parameter>
    </parameters>

    <services>
        <service id="assetic.helper.dynamic" class="%assetic.helper.dynamic.class%">
            <tag name="assetic.templating.php" />
            <argument type="service" id="templating.helper.router" />
            <argument type="service" id="assetic.asset_factory" />
        </service>

        <service id="assetic.helper.static" class="%assetic.helper.static.class%" scope="request">
            <tag name="assetic.templating.php" />
            <argument type="service" id="templating.helper.assets" />
            <argument type="service" id="assetic.asset_factory" />
        </service>

        <service id="assetic.php_formula_loader" class="%assetic.cached_formula_loader.class%" public="false">
            <tag name="assetic.formula_loader" alias="php" />
            <tag name="assetic.templating.php" />
            <argument type="service" id="assetic.php_formula_loader.real" />
            <argument type="service" id="assetic.config_cache" />
            <argument>%kernel.debug%</argument>
        </service>

        <service id="assetic.php_formula_loader.real" class="%assetic.php_formula_loader.class%" public="false">
            <tag name="assetic.templating.php" />
            <argument type="service" id="assetic.asset_factory" />
        </service>
    </services>
</container>
