routing.yml 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Internal routing configuration to handle ESI
  2. #_internal:
  3. # resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
  4. # prefix: /_internal
  5. admin:
  6. resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
  7. prefix: /admin
  8. _sonata_admin:
  9. resource: .
  10. type: sonata_admin
  11. prefix: /admin
  12. MuzichAdminBundle:
  13. resource: "@MuzichAdminBundle/Resources/config/routing.yml"
  14. # prefix: /{_locale}/
  15. # defaults: { _locale: fr }
  16. MuzichIndexBundle:
  17. resource: "@MuzichIndexBundle/Resources/config/routing.yml"
  18. prefix: /
  19. change_language:
  20. pattern: /change-language/{language}/{redirect}
  21. defaults: { _controller: MuzichCoreBundle:Core:changeLanguage, redirect: referer }
  22. MuzichCoreBundle:
  23. resource: "@MuzichCoreBundle/Resources/config/routing.yml"
  24. prefix: /{_locale}/
  25. defaults: { _locale: fr }
  26. MuzichHomeBundle:
  27. resource: "@MuzichHomeBundle/Resources/config/routing.yml"
  28. prefix: /{_locale}/
  29. defaults:
  30. _locale: fr
  31. # On doit rajouter une route au cas ou la langue n'est pas précisé.
  32. home_bis:
  33. pattern: /
  34. defaults: { _controller: MuzichHomeBundle:Home:index }
  35. MuzichUserBundle:
  36. resource: "@MuzichUserBundle/Resources/config/routing.yml"
  37. prefix: /{_locale}/
  38. defaults:
  39. _locale: en|fr
  40. MuzichMynetworkBundle:
  41. resource: "@MuzichMynetworkBundle/Resources/config/routing.yml"
  42. prefix: /{_locale}/
  43. defaults:
  44. _locale: en|fr
  45. MuzichGroupBundle:
  46. resource: "@MuzichGroupBundle/Resources/config/routing.yml"
  47. prefix: /{_locale}/
  48. defaults:
  49. _locale: en|fr
  50. MuzichFavoriteBundle:
  51. resource: "@MuzichFavoriteBundle/Resources/config/routing.yml"
  52. prefix: /{_locale}/
  53. defaults:
  54. _locale: en|fr
  55. MuzichCommentBundle:
  56. resource: "@MuzichCommentBundle/Resources/config/routing.yml"
  57. prefix: /{_locale}/
  58. defaults:
  59. _locale: en|fr