<?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.jpegoptim.class">Assetic\Filter\JpegoptimFilter</parameter>
        <parameter key="assetic.filter.jpegoptim.bin">/usr/bin/jpegoptim</parameter>
        <parameter key="assetic.filter.jpegoptim.strip_all">false</parameter>
        <parameter key="assetic.filter.jpegoptim.max">null</parameter>
    </parameters>

    <services>
        <service id="assetic.filter.jpegoptim" class="%assetic.filter.jpegoptim.class%">
            <tag name="assetic.filter" alias="jpegoptim" />
            <argument>%assetic.filter.jpegoptim.bin%</argument>
            <call method="setStripAll"><argument>%assetic.filter.jpegoptim.strip_all%</argument></call>
            <call method="setMax"><argument>%assetic.filter.jpegoptim.max%</argument></call>
        </service>
    </services>
</container>
