<?xml version="1.0" encoding="UTF-8" ?>

<!--
 This file is part of the FOSCommentBundle package.

 (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>

 This source file is subject to the MIT license that is bundled
 with this source code in the file LICENSE.
-->

<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="fos_comment.form_type.comment.default" class="FOS\CommentBundle\Form\CommentType">
            <argument>%fos_comment.model.comment.class%</argument>
            <tag name="form.type" alias="fos_comment_comment" />
        </service>

        <service id="fos_comment.form_factory.comment.default" class="FOS\CommentBundle\FormFactory\CommentFormFactory" public="false">
            <argument type="service" id="form.factory" />
            <argument>%fos_comment.form.comment.type%</argument>
            <argument>%fos_comment.form.comment.name%</argument>
        </service>

        <service id="fos_comment.form_type.commentable_thread.default" class="FOS\CommentBundle\Form\CommentableThreadType">
            <argument>%fos_comment.model.thread.class%</argument>
            <tag name="form.type" alias="fos_comment_commentable_thread" extended-type="FOS\CommentBundle\Form\CommentableThreadType" />
        </service>

        <service id="fos_comment.form_factory.commentable_thread.default" class="FOS\CommentBundle\FormFactory\CommentableThreadFormFactory" public="false">
            <argument type="service" id="form.factory" />
            <argument>%fos_comment.form.commentable_thread.type%</argument>
            <argument>%fos_comment.form.commentable_thread.name%</argument>
        </service>

        <service id="fos_comment.form_type.delete_comment.default" class="FOS\CommentBundle\Form\DeleteCommentType">
            <argument>%fos_comment.model.comment.class%</argument>
            <tag name="form.type" alias="fos_comment_delete_comment" extended-type="FOS\CommentBundle\Form\DeleteCommentType" />
        </service>

        <service id="fos_comment.form_factory.delete_comment.default" class="FOS\CommentBundle\FormFactory\DeleteCommentFormFactory" public="false">
            <argument type="service" id="form.factory" />
            <argument>%fos_comment.form.delete_comment.type%</argument>
            <argument>%fos_comment.form.delete_comment.name%</argument>
        </service>

        <service id="fos_comment.form_type.thread.default" class="FOS\CommentBundle\Form\ThreadType">
            <argument>%fos_comment.model.thread.class%</argument>
            <tag name="form.type" alias="fos_comment_thread" extended-type="FOS\CommentBundle\Form\ThreadType" />
        </service>

        <service id="fos_comment.form_factory.thread.default" class="FOS\CommentBundle\FormFactory\ThreadFormFactory" public="false">
            <argument type="service" id="form.factory" />
            <argument>%fos_comment.form.thread.type%</argument>
            <argument>%fos_comment.form.thread.name%</argument>
        </service>

        <service id="fos_comment.form_type.vote.default" class="FOS\CommentBundle\Form\VoteType">
            <argument>%fos_comment.model.vote.class%</argument>
            <tag name="form.type" alias="fos_comment_vote" extended-type="FOS\CommentBundle\Form\VoteType" />
        </service>

        <service id="fos_comment.form_factory.vote.default" class="FOS\CommentBundle\FormFactory\VoteFormFactory" public="false">
            <argument type="service" id="form.factory" />
            <argument>%fos_comment.form.vote.type%</argument>
            <argument>%fos_comment.form.vote.name%</argument>
        </service>

    </services>

</container>
