<?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.controller.class">Symfony\Bundle\AsseticBundle\Controller\AsseticController</parameter>
        <parameter key="assetic.routing_loader.class">Symfony\Bundle\AsseticBundle\Routing\AsseticLoader</parameter>
        <parameter key="assetic.cache.class">Assetic\Cache\FilesystemCache</parameter>
        <parameter key="assetic.use_controller_worker.class">Symfony\Bundle\AsseticBundle\Factory\Worker\UseControllerWorker</parameter>
        <parameter key="assetic.request_listener.class">Symfony\Bundle\AsseticBundle\EventListener\RequestListener</parameter>
    </parameters>

    <services>
        <service id="assetic.routing_loader" class="%assetic.routing_loader.class%" public="false">
            <tag name="routing.loader" />
            <argument type="service" id="assetic.asset_manager" />
        </service>
        <service id="assetic.controller" class="%assetic.controller.class%" scope="prototype">
            <argument type="service" id="request" />
            <argument type="service" id="assetic.asset_manager" />
            <argument type="service" id="assetic.cache" />
            <argument>%assetic.enable_profiler%</argument>
            <argument type="service" id="profiler" on-invalid="null" />
            
            <call method="setValueSupplier">
                <argument type="service" id="assetic.value_supplier" on-invalid="ignore" />
            </call>
        </service>
        <service id="assetic.cache" class="%assetic.cache.class%" public="false">
            <argument>%assetic.cache_dir%/assets</argument>
        </service>
        <service id="assetic.use_controller_worker" class="%assetic.use_controller_worker.class%" public="false">
            <tag name="assetic.factory_worker" />
        </service>
        <service id="assetic.request_listener" class="%assetic.request_listener.class%">
            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" />
        </service>
    </services>
</container>
