sonata_user.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # if you change the class configuration, please also alter the fos_user.yml file
  2. sonata_user:
  3. admin:
  4. user:
  5. class: Chamilo\UserBundle\Admin\UserAdmin
  6. group:
  7. class: Chamilo\UserBundle\Admin\GroupAdmin
  8. class:
  9. # Entity Classes
  10. user: Chamilo\UserBundle\Entity\User
  11. group: Chamilo\UserBundle\Entity\Group
  12. security_acl: false
  13. table:
  14. user_group: fos_user_user_group
  15. impersonating:
  16. route: page_slug
  17. parameters: {path: /}
  18. # google_authenticator:
  19. # server: %sonata_user.google_authenticator.server%
  20. # enabled: true
  21. manager_type: orm
  22. profile:
  23. # dashboard:
  24. # blocks:
  25. # - { position: left, type: sonata.block.service.text, settings: { content: "<h2>Welcome!</h2> <p>This is a sample user profile dashboard, feel free to override it in the configuration! Want to make this text dynamic? For instance display the user's name? Create a dedicated block and edit the configuration!</p>"} }
  26. #
  27. # menu:
  28. # - { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'}
  29. # - { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'}
  30. #
  31. # form:
  32. # type: sonata_user_registration
  33. # handler: sonata.user.profile.form.handler.default
  34. # name: sonata_user_registration_form
  35. # validation_groups:
  36. # - Profile
  37. # register:
  38. # form:
  39. # type: chamilo_sonata_user_registration
  40. # handler: sonata.user.registration.form.handler.default
  41. # name: chamilo_sonata_user_registration
  42. # validation_groups:
  43. # - Registration
  44. # - Default