routing.yml 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. language_automatic:
  23. pattern: /auto-language
  24. defaults: { _controller: MuzichCoreBundle:Core:automaticLanguage }
  25. MuzichCoreBundle:
  26. resource: "@MuzichCoreBundle/Resources/config/routing.yml"
  27. prefix: /{_locale}/
  28. defaults: { _locale: fr }
  29. MuzichHomeBundle:
  30. resource: "@MuzichHomeBundle/Resources/config/routing.yml"
  31. prefix: /{_locale}/
  32. # defaults:
  33. # _locale: fr
  34. # On doit rajouter une route au cas ou la langue n'est pas précisé.
  35. home_bis:
  36. pattern: /
  37. defaults: { _controller: MuzichHomeBundle:Home:index }
  38. MuzichUserBundle:
  39. resource: "@MuzichUserBundle/Resources/config/routing.yml"
  40. prefix: /{_locale}/
  41. defaults:
  42. _locale: en|fr
  43. MuzichMynetworkBundle:
  44. resource: "@MuzichMynetworkBundle/Resources/config/routing.yml"
  45. prefix: /{_locale}/
  46. defaults:
  47. _locale: en|fr
  48. MuzichGroupBundle:
  49. resource: "@MuzichGroupBundle/Resources/config/routing.yml"
  50. prefix: /{_locale}/
  51. defaults:
  52. _locale: en|fr
  53. MuzichFavoriteBundle:
  54. resource: "@MuzichFavoriteBundle/Resources/config/routing.yml"
  55. prefix: /{_locale}/
  56. defaults:
  57. _locale: en|fr
  58. MuzichCommentBundle:
  59. resource: "@MuzichCommentBundle/Resources/config/routing.yml"
  60. prefix: /{_locale}/
  61. defaults:
  62. _locale: en|fr