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

<!--

 This file is part of the Sylius package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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>
        <defaults public="true" />

        <service id="sylius.attribute_type.text" class="Sylius\Component\Attribute\AttributeType\TextAttributeType">
            <tag name="sylius.attribute.type" attribute-type="text" label="Text"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\TextAttributeType"
                 configuration-form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\Configuration\TextAttributeConfigurationType" />
        </service>

        <service id="sylius.attribute_type.textarea" class="Sylius\Component\Attribute\AttributeType\TextareaAttributeType">
            <tag name="sylius.attribute.type" attribute-type="textarea" label="Textarea"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\TextareaAttributeType" />
        </service>

        <service id="sylius.attribute_type.checkbox" class="Sylius\Component\Attribute\AttributeType\CheckboxAttributeType">
            <tag name="sylius.attribute.type" attribute-type="checkbox" label="Checkbox"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\CheckboxAttributeType" />
        </service>

        <service id="sylius.attribute_type.integer" class="Sylius\Component\Attribute\AttributeType\IntegerAttributeType">
            <tag name="sylius.attribute.type" attribute-type="integer" label="Integer"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\IntegerAttributeType" />
        </service>

        <service id="sylius.attribute_type.float" class="Sylius\Component\Attribute\AttributeType\FloatAttributeType">
            <tag name="sylius.attribute.type" attribute-type="float" label="Float"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\FloatAttributeType"/>
        </service>

        <service id="sylius.attribute_type.percent" class="Sylius\Component\Attribute\AttributeType\PercentAttributeType">
            <tag name="sylius.attribute.type" attribute-type="percent" label="Percent"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\PercentAttributeType" />
        </service>

        <service id="sylius.attribute_type.datetime" class="Sylius\Component\Attribute\AttributeType\DatetimeAttributeType">
            <tag name="sylius.attribute.type" attribute-type="datetime" label="Datetime"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\DatetimeAttributeType"
                 configuration-form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\Configuration\DatetimeAttributeConfigurationType" />
        </service>

        <service id="sylius.attribute_type.date" class="Sylius\Component\Attribute\AttributeType\DateAttributeType">
            <tag name="sylius.attribute.type" attribute-type="date" label="Date"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\DateAttributeType"
                 configuration-form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\Configuration\DateAttributeConfigurationType" />
        </service>

        <service id="sylius.attribute_type.select" class="Sylius\Component\Attribute\AttributeType\SelectAttributeType">
            <tag name="sylius.attribute.type" attribute-type="select" label="Select"
                 form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\SelectAttributeType"
                 configuration-form-type="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\Configuration\SelectAttributeConfigurationType" />
        </service>

        <service id="sylius.form.type.attribute_type.select" class="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\SelectAttributeType">
            <argument id="sylius.translation_locale_provider" type="service"/>
            <tag name="form.type" />
        </service>

        <service id="sylius.form.type.attribute_type.select.choices_collection" class="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\Configuration\SelectAttributeChoicesCollectionType">
            <tag name="form.type" />
        </service>

        <service id="sylius.attribute_type.select.value.translations" class="Sylius\Bundle\AttributeBundle\Form\Type\AttributeType\Configuration\SelectAttributeValueTranslationsType">
            <argument id="sylius.translation_locale_provider" type="service"/>
            <tag name="form.type" />
        </service>
    </services>
</container>
