<?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="cmf_routing.orm_content_repository" class="Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\ContentRepository">
            <argument type="service" id="doctrine"/>
            <call method="setManagerName"><argument>%cmf_routing.dynamic.persistence.orm.manager_name%</argument></call>
        </service>

        <service id="cmf_routing.content_repository" alias="cmf_routing.orm_content_repository"/>

        <service id="cmf_routing.orm_candidates" class="Symfony\Cmf\Component\Routing\Candidates\Candidates">
            <argument>%cmf_routing.dynamic.locales%</argument>
            <argument>%cmf_routing.dynamic.limit_candidates%</argument>
        </service>

        <service
                id="cmf_routing.route_provider"
                class="Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\RouteProvider"
                public="true">
            <argument type="service" id="doctrine" />
            <argument type="service" id="cmf_routing.orm_candidates" />
            <argument>%cmf_routing.dynamic.persistence.orm.route_class%</argument>
            <call method="setManagerName"><argument>%cmf_routing.dynamic.persistence.orm.manager_name%</argument></call>
            <call method="setRouteCollectionLimit"><argument>%cmf_routing.route_collection_limit%</argument></call>
        </service>
    </services>
</container>
