registration.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  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.registration.form" factory-method="createNamed" factory-service="form.factory" class="Symfony\Component\Form\Form">
  7. <argument>%fos_user.registration.form.name%</argument>
  8. <argument>%fos_user.registration.form.type%</argument>
  9. <argument>null</argument>
  10. <argument type="collection">
  11. <argument key="validation_groups">%fos_user.registration.form.validation_groups%</argument>
  12. </argument>
  13. </service>
  14. <service id="fos_user.registration.form.type" class="FOS\UserBundle\Form\Type\RegistrationFormType">
  15. <tag name="form.type" alias="fos_user_registration" />
  16. <argument>%fos_user.model.user.class%</argument>
  17. </service>
  18. <service id="fos_user.registration.form.handler.default" class="FOS\UserBundle\Form\Handler\RegistrationFormHandler" scope="request" public="false">
  19. <argument type="service" id="fos_user.registration.form" />
  20. <argument type="service" id="request" />
  21. <argument type="service" id="fos_user.user_manager" />
  22. <argument type="service" id="fos_user.mailer" />
  23. <argument type="service" id="fos_user.util.token_generator" />
  24. </service>
  25. </services>
  26. </container>