<?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.filter.closure.api.class">Assetic\Filter\GoogleClosure\CompilerApiFilter</parameter>
        <parameter key="assetic.filter.closure.jar.class">Assetic\Filter\GoogleClosure\CompilerJarFilter</parameter>
        <parameter key="assetic.filter.closure.java">%assetic.java.bin%</parameter>
        <parameter key="assetic.filter.closure.compilation_level">null</parameter>
    </parameters>

    <services>
        <service id="assetic.filter.closure.jar" class="%assetic.filter.closure.jar.class%">
            <tag name="assetic.filter" alias="closure" />
            <argument>%assetic.filter.closure.jar%</argument>
            <argument>%assetic.filter.closure.java%</argument>
            <call method="setCompilationLevel">
                <argument>%assetic.filter.closure.compilation_level%</argument>
            </call>
        </service>

        <service id="assetic.filter.closure.api" class="%assetic.filter.closure.api.class%">
            <tag name="assetic.filter" alias="closure" />
            <call method="setCompilationLevel">
                <argument>%assetic.filter.closure.compilation_level%</argument>
            </call>
        </service>
    </services>
</container>
