routing.yml 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. #share_form:
  39. # pattern: /share-from/{url}
  40. # defaults: { _controller: MuzichCoreBundle:Core:shareFrom }
  41. MuzichUserBundle:
  42. resource: "@MuzichUserBundle/Resources/config/routing.yml"
  43. prefix: /{_locale}/
  44. defaults:
  45. _locale: en|fr
  46. MuzichMynetworkBundle:
  47. resource: "@MuzichMynetworkBundle/Resources/config/routing.yml"
  48. prefix: /{_locale}/
  49. defaults:
  50. _locale: en|fr
  51. MuzichGroupBundle:
  52. resource: "@MuzichGroupBundle/Resources/config/routing.yml"
  53. prefix: /{_locale}/
  54. defaults:
  55. _locale: en|fr
  56. MuzichFavoriteBundle:
  57. resource: "@MuzichFavoriteBundle/Resources/config/routing.yml"
  58. prefix: /{_locale}/
  59. defaults:
  60. _locale: en|fr
  61. MuzichCommentBundle:
  62. resource: "@MuzichCommentBundle/Resources/config/routing.yml"
  63. prefix: /{_locale}/
  64. defaults:
  65. _locale: en|fr