<?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="fos_user.username_form_type" class="FOS\UserBundle\Form\Type\UsernameFormType">
            <tag name="form.type" alias="fos_user_username" />
            <argument type="service" id="fos_user.username_to_user_transformer" />
        </service>

        <service id="fos_user.username_to_user_transformer" class="FOS\UserBundle\Form\DataTransformer\UsernameToUserTransformer" public="false">
            <argument type="service" id="fos_user.user_manager" />
        </service>

    </services>

</container>
