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

    <services>
        <service id="sonata.notification.backend.runtime" class="Sonata\NotificationBundle\Backend\RuntimeBackend" >
            <argument type="service" id="sonata.notification.dispatcher" />
        </service>

        <service id="sonata.notification.backend.postpone" class="Sonata\NotificationBundle\Backend\PostponeRuntimeBackend" >
            <tag name="kernel.event_listener" event="kernel.terminate" method="onEvent" />
            <argument type="service" id="sonata.notification.dispatcher" />
        </service>

        <service id="sonata.notification.backend.doctrine" class="Sonata\NotificationBundle\Backend\MessageManagerBackendDispatcher" >
            <argument type="service" id="sonata.notification.manager.message" />
            <argument />
            <argument />
            <argument />
        </service>

        <service id="sonata.notification.backend.rabbitmq" class="Sonata\NotificationBundle\Backend\AMQPBackendDispatcher" >
            <argument  />
            <argument  />
            <argument  />
            <argument  />
        </service>
    </services>
</container>
