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

    <parameters>
        <parameter key="sonata.comment.admin.groupname">sonata_comment</parameter>
    </parameters>

    <services>
        <service id="sonata.comment.form.comment_type" class="Sonata\CommentBundle\Form\CommentType">
            <argument type="service" id="sonata.comment.note.provider" />

            <call method="setIsSignedInterface">
                <argument>%sonata.comment.class.comment.signed%</argument>
            </call>

            <tag name="form.type" alias="sonata_comment_comment" />
        </service>

        <service id="sonata.comment.form.comment_status_type" class="Sonata\CoreBundle\Form\Type\StatusType">
            <argument />
            <argument>getStateList</argument>
            <argument>sonata_comment_status</argument>

            <tag name="form.type" alias="sonata_comment_status" />
        </service>
    </services>
</container>
