sonata_user.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. class: # Entity Classes
  15. user: Chamilo\UserBundle\Entity\User
  16. group: Chamilo\UserBundle\Entity\Group
  17. security_acl: false
  18. table:
  19. user_group: fos_user_user_group
  20. impersonating:
  21. route: page_slug
  22. parameters: { path: / }
  23. google_authenticator:
  24. server: %sonata_user.google_authenticator.server%
  25. enabled: true
  26. manager_type: orm
  27. profile:
  28. dashboard:
  29. blocks:
  30. - { 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>"} }
  31. #- { position: left, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: public }}
  32. - { position: right, type: sonata.timeline.block.timeline, settings: { max_per_page: 15 }}
  33. - { position: right, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 5, mode: public }}
  34. - { position: right, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 5, mode: public }}
  35. menu:
  36. - { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'}
  37. - { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'}
  38. #- { route: 'sonata_customer_addresses', label: 'link_list_addresses', domain: 'SonataCustomerBundle'}
  39. #- { route: 'sonata_order_index', label: 'order_list', domain: 'SonataOrderBundle'}
  40. form:
  41. type: sonata_user_profile
  42. handler: sonata.user.profile.form.handler.default
  43. name: sonata_user_profile_form
  44. validation_groups:
  45. - ProfileCustom
  46. # register:
  47. # form:
  48. # type: sonata_user_registration
  49. # handler: sonata.user.registration.form.handler.default
  50. # name: sonata_user_registration_form
  51. # validation_groups:
  52. # - ProfileCustom