<?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">

    <parameters>
        <parameter key="knp_menu.twig.extension.class">Knp\Menu\Twig\MenuExtension</parameter>
        <parameter key="knp_menu.renderer.twig.class">Knp\Menu\Renderer\TwigRenderer</parameter>
        <parameter key="knp_menu.renderer.twig.options" type="collection"></parameter>
    </parameters>

    <services>
        <service id="knp_menu.twig.extension" class="%knp_menu.twig.extension.class%" public="false">
            <tag name="twig.extension" />
            <argument type="service" id="knp_menu.helper" />
        </service>

        <service id="knp_menu.renderer.twig" class="%knp_menu.renderer.twig.class%">
            <tag name="knp_menu.renderer" alias="twig" />
            <argument type="service" id="twig" />
            <argument>%knp_menu.renderer.twig.template%</argument>
            <argument>%knp_menu.renderer.twig.options%</argument>
        </service>
    </services>

</container>
