_security_check:
  pattern:  /login_facebook_check
  
_security_logout:
    pattern:  /logout

MuzichIndexBundle:
  resource: "@MuzichIndexBundle/Resources/config/routing.yml"
  prefix: /
    
change_language:
  pattern:  /change-language/{language}/{redirect}
  defaults: { _controller: MuzichCoreBundle:Core:changeLanguage, redirect: referer }
  
language_automatic:
  pattern:  /auto-language
  defaults: { _controller: MuzichCoreBundle:Core:automaticLanguage }
  
share_form:
  pattern:  /share-from/
  defaults: { _controller: MuzichCoreBundle:Core:shareFrom }
  
MuzichCoreBundle:
  resource: "@MuzichCoreBundle/Resources/config/routing.yml"
  prefix: /{_locale}/
  requirements:
    _locale: fr|en

  
MuzichHomeBundle:
  resource: "@MuzichHomeBundle/Resources/config/routing.yml"
  prefix: /{_locale}/
  requirements:
    _locale: fr|en
    
# On doit rajouter une route au cas ou la langue n'est pas précisé.
home_bis:
  pattern:  /
  defaults: { _controller: MuzichHomeBundle:Home:index, network: network_public }
  
MuzichUserBundle:
  resource: "@MuzichUserBundle/Resources/config/routing.yml"
  prefix: /{_locale}/
  requirements:
    _locale: fr|en

MuzichMynetworkBundle:
  resource: "@MuzichMynetworkBundle/Resources/config/routing.yml"
  prefix:   /{_locale}/
  requirements:
    _locale: fr|en
  
MuzichGroupBundle:
  resource: "@MuzichGroupBundle/Resources/config/routing.yml"
  prefix:   /{_locale}/
  requirements:
    _locale: fr|en
  
MuzichFavoriteBundle:
  resource: "@MuzichFavoriteBundle/Resources/config/routing.yml"
  prefix:   /{_locale}/
  requirements:
    _locale: fr|en
  
MuzichCommentBundle:
  resource: "@MuzichCommentBundle/Resources/config/routing.yml"
  prefix:   /{_locale}/
  requirements:
    _locale: fr|en
  
MuzichPlaylistBundle:
  resource: "@MuzichPlaylistBundle/Resources/config/routing.yml"
  prefix:   /{_locale}/
  requirements:
    _locale: fr|en
  
AdmingeneratorDashboard_welcome:
    pattern: /admin/dashboard
    defaults: { _controller: MuzichAdminBundle:Dashboard:welcome }

shtumi_useful:
    resource: '@ShtumiUsefulBundle/Resources/config/routing.xml'
    prefix:   /system/search/

########## ADMIN
MuzichAdminBundle:
    resource: "@MuzichAdminBundle/Resources/config/routing.yml"
    prefix: /admin/
    
AdmingeneratorDashboard_welcome:
    pattern: /admin/dashboard
    defaults: { _controller: MuzichAdminBundle:Dashboard:welcome }

MuzichAdminBundle_admin_muzich_admin_bundle_admin_element:
    resource: "@MuzichAdminBundle/Controller/Admin_element/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/admin_element

MuzichAdminBundle_admin_muzich_admin_bundle_admin_tag:
    resource: "@MuzichAdminBundle/Controller/Admin_tag/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/admin_tag

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_group:
    resource: "@MuzichAdminBundle/Controller/Admin_group/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_group

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_user:
    resource: "@MuzichAdminBundle/Controller/Admin_user/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_user
    
MuzichAdminBundle_admin_muzich_admin_bundle_Admin_follow_user:
    resource: "@MuzichAdminBundle/Controller/Admin_follow_user/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_follow_user

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_follow_group:
    resource: "@MuzichAdminBundle/Controller/Admin_follow_group/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_follow_group

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_groups_tags_favorites:
    resource: "@MuzichAdminBundle/Controller/Admin_groups_tags_favorites/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_groups_tags_favorites

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_users_tags_favorites:
    resource: "@MuzichAdminBundle/Controller/Admin_users_tags_favorites/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_users_tags_favorites

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_presubscription:
    resource: "@MuzichAdminBundle/Controller/Admin_presubscription/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_presubscription

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_registration_token:
    resource: "@MuzichAdminBundle/Controller/Admin_registration_token/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_registration_token

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_event_archive:
    resource: "@MuzichAdminBundle/Controller/Admin_event_archive/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_event_archive

MuzichAdminBundle_admin_muzich_admin_bundle_Admin_element_tags_proposition:
    resource: "@MuzichAdminBundle/Controller/Admin_element_tags_proposition/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Admin_element_tags_proposition

MuzichAdminBundle_admin_muzich_admin_bundle_Admin:
    resource: "@MuzichAdminBundle/Resources/config/routing.yml"
    prefix:   /admin/muzich_admin_bundle

MuzichAdminBundle_admin_muzich_admin_bundle_Moderate_element:
    resource: "@MuzichAdminBundle/Controller/Moderate_element/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Moderate_element

MuzichAdminBundle_admin_muzich_admin_bundle_Moderate_tag:
    resource: "@MuzichAdminBundle/Controller/Moderate_tag/"
    type:     admingenerator
    prefix:   /admin/muzich_admin_bundle/Moderate_tag

test_error:
  pattern:  /test-error
  defaults: { _controller: MuzichCoreBundle:Core:testError }