profile.xml 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <services>
  6. <service id="fos_user.profile.form" factory-method="createNamed" factory-service="form.factory" class="Symfony\Component\Form\Form">
  7. <argument>%fos_user.profile.form.name%</argument>
  8. <argument>%fos_user.profile.form.type%</argument>
  9. <argument>null</argument>
  10. <argument type="collection">
  11. <argument key="validation_groups">%fos_user.profile.form.validation_groups%</argument>
  12. </argument>
  13. </service>
  14. <service id="fos_user.profile.form.type" class="FOS\UserBundle\Form\Type\ProfileFormType">
  15. <argument>%fos_user.model.user.class%</argument>
  16. <tag name="form.type" alias="fos_user_profile" />
  17. </service>
  18. <service id="fos_user.profile.form.handler.default" class="FOS\UserBundle\Form\Handler\ProfileFormHandler" scope="request" public="false">
  19. <argument type="service" id="fos_user.profile.form" />
  20. <argument type="service" id="request" />
  21. <argument type="service" id="fos_user.user_manager" />
  22. </service>
  23. </services>
  24. </container>