1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?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>
- <!-- profile form -->
- <service id="sonata.user.profile.form" class="Symfony\Component\Form\Form">
- <!-- NEXT_MAJOR: Uncomment Following line
- <factory class="Symfony\Component\Form\FormFactory" method="createNamed"/>
- -->
- <argument>%sonata.user.profile.form.name%</argument>
- <argument>%sonata.user.profile.form.type%</argument>
- <argument>null</argument>
- <argument type="collection">
- <argument key="validation_groups">%sonata.user.profile.form.validation_groups%</argument>
- <argument key="translation_domain">SonataUserBundle</argument>
- </argument>
- </service>
- <service id="sonata.user.profile.form.type" class="Sonata\UserBundle\Form\Type\ProfileType">
- <argument>%fos_user.model.user.class%</argument>
- <tag name="form.type" alias="sonata_user_profile"/>
- </service>
- <service id="sonata.user.profile.form.handler.default" class="Sonata\UserBundle\Form\Handler\ProfileFormHandler" scope="request" public="false">
- <argument type="service" id="sonata.user.profile.form"/>
- <argument type="service" id="request"/>
- <argument type="service" id="fos_user.user_manager"/>
- </service>
- <service id="sonata.user.form.gender_list" class="Sonata\UserBundle\Form\Type\UserGenderListType">
- <argument>%fos_user.model.user.class%</argument>
- <argument>getGenderList</argument>
- <argument>sonata_user_gender</argument>
- <tag name="form.type" alias="sonata_user_gender"/>
- </service>
- <service id="sonata.user.registration.form" class="Symfony\Component\Form\Form">
- <!-- NEXT_MAJOR: Uncomment Following line
- <factory class="Symfony\Component\Form\FormFactory" method="createNamed"/>
- -->
- <argument>%sonata.user.registration.form.name%</argument>
- <argument>%sonata.user.registration.form.type%</argument>
- <argument>null</argument>
- <argument type="collection">
- <argument key="validation_groups">%sonata.user.registration.form.validation_groups%</argument>
- </argument>
- </service>
- <service id="sonata.user.registration.form.type" class="Sonata\UserBundle\Form\Type\RegistrationFormType">
- <tag name="form.type" alias="sonata_user_registration"/>
- <argument>%fos_user.model.user.class%</argument>
- <argument>%sonata.user.registration.form.options%</argument>
- </service>
- <service id="sonata.user.registration.form.handler.default" class="Sonata\UserBundle\Form\Handler\RegistrationFormHandler" scope="request" public="false">
- <argument type="service" id="sonata.user.registration.form"/>
- <argument type="service" id="request"/>
- <argument type="service" id="fos_user.user_manager"/>
- <argument type="service" id="fos_user.mailer"/>
- <argument type="service" id="fos_user.util.token_generator"/>
- </service>
- </services>
- </container>
|