sonata_user.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # if you change the class configuration, please also alter the fos_user.yml file
  2. doctrine:
  3. orm:
  4. entity_managers:
  5. default:
  6. mappings:
  7. FOSUserBundle: ~
  8. ChamiloUserBundle: ~
  9. SonataUserBundle: ~
  10. sonata_user:
  11. admin:
  12. user:
  13. class: Chamilo\UserBundle\Admin\UserAdmin
  14. group:
  15. class: Chamilo\UserBundle\Admin\GroupAdmin
  16. class:
  17. # Entity Classes
  18. user: Chamilo\UserBundle\Entity\User
  19. group: Chamilo\UserBundle\Entity\Group
  20. security_acl: false
  21. table:
  22. user_group: fos_user_user_group
  23. impersonating:
  24. route: page_slug
  25. parameters: { path: / }
  26. # google_authenticator:
  27. # server: %sonata_user.google_authenticator.server%
  28. # enabled: true
  29. manager_type: orm
  30. profile:
  31. dashboard:
  32. blocks:
  33. - { 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>"} }
  34. #- { position: left, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: public }}
  35. # - { position: right, type: sonata.timeline.block.timeline, settings: { max_per_page: 15 }}
  36. # - { position: right, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 5, mode: public }}
  37. # - { position: right, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 5, mode: public }}
  38. menu:
  39. - { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'}
  40. - { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'}
  41. #- { route: 'sonata_customer_addresses', label: 'link_list_addresses', domain: 'SonataCustomerBundle'}
  42. #- { route: 'sonata_order_index', label: 'order_list', domain: 'SonataOrderBundle'}
  43. form:
  44. type: sonata_user_registration
  45. handler: sonata.user.profile.form.handler.default
  46. name: sonata_user_registration_form
  47. validation_groups:
  48. - Profile
  49. # register:
  50. # form:
  51. # type: chamilo_sonata_user_registration
  52. # handler: sonata.user.registration.form.handler.default
  53. # name: chamilo_sonata_user_registration
  54. # validation_groups:
  55. # - Registration
  56. # - Default