configuration_reference.rst 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. FOSUserBundle Configuration Reference
  2. =====================================
  3. All available configuration options are listed below with their default values.
  4. .. code-block:: yaml
  5. fos_user:
  6. db_driver: ~ # Required
  7. firewall_name: ~ # Required
  8. user_class: ~ # Required
  9. use_listener: true
  10. use_username_form_type: true
  11. model_manager_name: null # change it to the name of your entity/document manager if you don't want to use the default one.
  12. from_email:
  13. address: webmaster@example.com
  14. sender_name: Admin
  15. profile:
  16. form:
  17. type: fos_user_profile
  18. handler: fos_user.profile.form.handler.default
  19. name: fos_user_profile_form
  20. validation_groups: [Profile, Default]
  21. change_password:
  22. form:
  23. type: fos_user_change_password
  24. handler: fos_user.change_password.form.handler.default
  25. name: fos_user_change_password_form
  26. validation_groups: [ChangePassword, Default]
  27. registration:
  28. confirmation:
  29. from_email: # Use this node only if you don't want the global email address for the confirmation email
  30. address: ...
  31. sender_name: ...
  32. enabled: false # change to true for required email confirmation
  33. template: FOSUserBundle:Registration:email.txt.twig
  34. form:
  35. type: fos_user_registration
  36. handler: fos_user.registration.form.handler.default
  37. name: fos_user_registration_form
  38. validation_groups: [Registration, Default]
  39. resetting:
  40. token_ttl: 86400
  41. email:
  42. from_email: # Use this node only if you don't want the global email address for the resetting email
  43. address: ...
  44. sender_name: ...
  45. template: FOSUserBundle:Resetting:email.txt.twig
  46. form:
  47. type: fos_user_resetting
  48. handler: fos_user.resetting.form.handler.default
  49. name: fos_user_resetting_form
  50. validation_groups: [ResetPassword, Default]
  51. service:
  52. mailer: fos_user.mailer.default
  53. email_canonicalizer: fos_user.util.canonicalizer.default
  54. username_canonicalizer: fos_user.util.canonicalizer.default
  55. token_generator: fos_user.util.token_generator.default
  56. user_manager: fos_user.user_manager.default
  57. template:
  58. engine: twig
  59. group:
  60. group_class: ~ # Required when using groups
  61. group_manager: fos_user.group_manager.default
  62. form:
  63. type: fos_user_group
  64. handler: fos_user.group.form.handler.default
  65. name: fos_user_group_form
  66. validation_groups: [Registration, Default]