<?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="sonata.core.flashmessage.manager.class">Sonata\CoreBundle\FlashMessage\FlashManager</parameter>
        <parameter key="sonata.core.twig.extension.flashmessage.class">Sonata\CoreBundle\Twig\Extension\FlashMessageExtension</parameter>
    </parameters>

    <services>
        <service id="sonata.core.flashmessage.manager" class="%sonata.core.flashmessage.manager.class%" public="true">
            <tag name="sonata.status.renderer" />
            <argument type="service" id="session" />
            <argument type="service" id="translator" />
            <argument />
            <argument />
        </service>

        <service id="sonata.core.flashmessage.twig.extension" class="%sonata.core.twig.extension.flashmessage.class%" public="true">
            <tag name="twig.extension" />

            <argument type="service" id="sonata.core.flashmessage.manager" />
        </service>
    </services>

</container>
