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

    <services>
        <service id="sonata.core.form.type.array" class="Sonata\CoreBundle\Form\Type\ImmutableArrayType">
            <tag name="form.type" alias="sonata_type_immutable_array" />
        </service>

        <service id="sonata.core.form.type.boolean" class="Sonata\CoreBundle\Form\Type\BooleanType">
            <tag name="form.type" alias="sonata_type_boolean" />
        </service>

        <service id="sonata.core.form.type.collection" class="Sonata\CoreBundle\Form\Type\CollectionType">
            <tag name="form.type" alias="sonata_type_collection" />
        </service>

        <service id="sonata.core.form.type.translatable_choice" class="Sonata\CoreBundle\Form\Type\TranslatableChoiceType">
            <tag name="form.type" alias="sonata_type_translatable_choice" />
            <argument type="service" id="translator" />
        </service>

        <service id="sonata.core.form.type.date_range" class="Sonata\CoreBundle\Form\Type\DateRangeType">
            <tag name="form.type" alias="sonata_type_date_range" />

            <argument type="service" id="translator" />
        </service>

        <service id="sonata.core.form.type.datetime_range" class="Sonata\CoreBundle\Form\Type\DateTimeRangeType">
            <tag name="form.type" alias="sonata_type_datetime_range" />

            <argument type="service" id="translator" />
        </service>

        <service id="sonata.core.form.type.equal" class="Sonata\CoreBundle\Form\Type\EqualType">
            <tag name="form.type" alias="sonata_type_equal" />
            <argument type="service" id="translator" />
        </service>

    </services>

</container>
