advanced_configuration.rst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Advanced Configuration
  2. ======================
  3. Full configuration options:
  4. .. code-block:: yaml
  5. fos_user:
  6. db_driver: orm # can be orm or odm
  7. firewall_name: main
  8. user_class: Application\Sonata\UserBundle\Entity\User
  9. group:
  10. group_class: Application\Sonata\UserBundle\Entity\Group
  11. profile: # Authentication Form
  12. form:
  13. type: fos_user_profile
  14. handler: fos_user.profile.form.handler.default
  15. name: fos_user_profile_form
  16. validation_groups: [Authentication] # Please note : this is not the default value
  17. sonata_user:
  18. security_acl: false
  19. class:
  20. user: Application\Sonata\UserBundle\Entity\User
  21. group: Application\Sonata\UserBundle\Entity\Group
  22. profile: # Profile Form (firstname, lastname, etc ...)
  23. form:
  24. type: sonata.user.profile
  25. handler: sonata.user.profile.form.handler.default
  26. name: sonata_user_profile_form
  27. validation_groups: [Profile]
  28. # Enable Doctrine to map the provided entities
  29. doctrine:
  30. orm:
  31. entity_managers:
  32. default:
  33. mappings:
  34. FOSUserBundle: ~
  35. ApplicationSonataUserBundle: ~
  36. SonataUserBundle: ~