routing.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. MuzichIndexBundle:
  15. resource: "@MuzichIndexBundle/Resources/config/routing.yml"
  16. prefix: /
  17. change_language:
  18. pattern: /change-language/{language}/{redirect}
  19. defaults: { _controller: MuzichCoreBundle:Core:changeLanguage, redirect: referer }
  20. language_automatic:
  21. pattern: /auto-language
  22. defaults: { _controller: MuzichCoreBundle:Core:automaticLanguage }
  23. share_form:
  24. pattern: /share-from/
  25. defaults: { _controller: MuzichCoreBundle:Core:shareFrom }
  26. MuzichCoreBundle:
  27. resource: "@MuzichCoreBundle/Resources/config/routing.yml"
  28. prefix: /{_locale}/
  29. MuzichHomeBundle:
  30. resource: "@MuzichHomeBundle/Resources/config/routing.yml"
  31. prefix: /{_locale}/
  32. # On doit rajouter une route au cas ou la langue n'est pas précisé.
  33. home_bis:
  34. pattern: /
  35. defaults: { _controller: MuzichHomeBundle:Home:index, network: network_public }
  36. MuzichUserBundle:
  37. resource: "@MuzichUserBundle/Resources/config/routing.yml"
  38. prefix: /{_locale}/
  39. MuzichMynetworkBundle:
  40. resource: "@MuzichMynetworkBundle/Resources/config/routing.yml"
  41. prefix: /{_locale}/
  42. MuzichGroupBundle:
  43. resource: "@MuzichGroupBundle/Resources/config/routing.yml"
  44. prefix: /{_locale}/
  45. MuzichFavoriteBundle:
  46. resource: "@MuzichFavoriteBundle/Resources/config/routing.yml"
  47. prefix: /{_locale}/
  48. MuzichCommentBundle:
  49. resource: "@MuzichCommentBundle/Resources/config/routing.yml"
  50. prefix: /{_locale}/