<?xml version="1.0" encoding="UTF-8" ?>

<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>
        <service id="sonata.admin.route.path_info" class="Sonata\AdminBundle\Route\PathInfoBuilder">
            <argument type="service" id="sonata.admin.audit.manager" />
        </service>

        <service id="sonata.admin.route.query_string" class="Sonata\AdminBundle\Route\QueryStringBuilder">
            <argument type="service" id="sonata.admin.audit.manager" />
        </service>

        <service id="sonata.admin.route.default_generator" class="Sonata\AdminBundle\Route\DefaultRouteGenerator">
            <argument type="service" id="router" />
            <argument type="service" id="sonata.admin.route.cache" />
        </service>

        <service id="sonata.admin.route.cache" class="Sonata\AdminBundle\Route\RoutesCache">
            <argument>%kernel.cache_dir%/sonata/admin</argument>
            <argument>%kernel.debug%</argument>
        </service>

        <service id="sonata.admin.route.cache_warmup" class="Sonata\AdminBundle\Route\RoutesCacheWarmUp">
            <argument type="service" id="sonata.admin.route.cache" />
            <argument type="service" id="sonata.admin.pool" />

            <tag name="kernel.cache_warmer" />
        </service>
    </services>
</container>
