1 #https://symfony.com/doc/current/controller.html#controller-request-argument
 
   2 #CRUD: edit, index, new, show, _delete_form, _form
 
   3 #https://symfony.com/doc/current/routing.html#localized-routes-i18n
 
   4 #SCRUD: index, add, edit, delete, view
 
   6 #TODO: rename view in show ???
 
  11     controller: Rapsys\AirBundle\Controller\DefaultController::index
 
  18     controller: Rapsys\AirBundle\Controller\DefaultController::about
 
  21 #TODO: drop it or should we keep it to be able to add an application from multiple places ???
 
  22 rapsysair_application_add:
 
  24         en_gb: '/en/application'
 
  26     controller: Rapsys\AirBundle\Controller\ApplicationController::add
 
  31         en_gb: '/en/contact/{id<\d*>?}/{user<[\w-]*>?}'
 
  32         fr_fr: '/contacter/{id<\d*>?}/{user<[\w-]*>?}'
 
  33     controller: Rapsys\AirBundle\Controller\DefaultController::contact
 
  38 #        en_gb: '/en/calendar'
 
  39 #        fr_fr: '/calendrier'
 
  40 #    controller: Rapsys\AirBundle\Controller\CalendarController::index
 
  47     controller: Rapsys\AirBundle\Controller\LocationController::cities
 
  52         'en_gb': '/en/city/{latitude<-?(?:\d*\.)?\d+>}/{longitude<-?(?:\d*\.)?\d+>}/{city<[\w-]+>}'
 
  53         'fr_fr': '/ville/{latitude<-?(?:\d*\.)?\d+>}/{longitude<-?(?:\d*\.)?\d+>}/{city<[\w-]+>}'
 
  54     controller: Rapsys\AirBundle\Controller\LocationController::city
 
  61     controller: Rapsys\AirBundle\Controller\DanceController::index
 
  66         'en_gb': '/en/dance/{id<[0-9]+>}/{name<[\w-]+>}/{type<[\w-]+>}'
 
  67         'fr_fr': '/danse/{id<[0-9]+>}/{name<[\w-]+>}/{type<[\w-]+>}'
 
  68     controller: Rapsys\AirBundle\Controller\DanceController::view
 
  73         'en_gb': '/en/dance/{name<[a-zA-Z0-9=_-]+>}/{dance<[\w-]+>}'
 
  74         'fr_fr': '/danse/{name<[a-zA-Z0-9=_-]+>}/{dance<[\w-]+>}'
 
  75     controller: Rapsys\AirBundle\Controller\DanceController::name
 
  78 rapsysair_frequently_asked_questions:
 
  80         en_gb: '/en/frequently-asked-questions'
 
  81         fr_fr: '/foire-aux-questions'
 
  82     controller: Rapsys\AirBundle\Controller\DefaultController::frequentlyAskedQuestions
 
  85 rapsysair_google_callback:
 
  86     path: '/google/callback'
 
  87     controller: Rapsys\AirBundle\Controller\UserController::googleCallback
 
  94     controller: Rapsys\AirBundle\Controller\LocationController::index
 
  97 rapsysair_location_view:
 
  99         en_gb: '/en/location/{id<\d+>}/{location<[\w-]+>?}'
 
 100         fr_fr: '/emplacement/{id<\d+>}/{location<[\w-]+>?}'
 
 101     controller: Rapsys\AirBundle\Controller\LocationController::view
 
 104 rapsysair_organizer_regulation:
 
 106         en_gb: '/en/organizer-regulation'
 
 107         fr_fr: '/reglement-organisateur'
 
 108     controller: Rapsys\AirBundle\Controller\DefaultController::organizerRegulation
 
 115     controller: Rapsys\AirBundle\Controller\SessionController::index
 
 118 rapsysair_session_tangoargentin:
 
 120         en_gb: '/en/session/tangoargentin.{!_format?json}'
 
 121         fr_fr: '/seance/tangoargentin.{!_format?json}'
 
 122     controller: Rapsys\AirBundle\Controller\SessionController::tangoargentin
 
 125 rapsysair_session_view:
 
 127         en_gb: '/en/session/{id<\d+>}/{location<[\w-]+>?}/{dance<[\w-]*>?}/{user<[\w-]*>?}'
 
 128         fr_fr: '/seance/{id<\d+>}/{location<[\w-]+>?}/{dance<[\w-]*>?}/{user<[\w-]*>?}'
 
 129     controller: Rapsys\AirBundle\Controller\SessionController::view
 
 132 rapsysair_snippet_add:
 
 136     controller: Rapsys\AirBundle\Controller\SnippetController::add
 
 139 rapsysair_snippet_edit:
 
 141         en_gb: '/en/snippet/{id<\d+>}'
 
 142         fr_fr: '/extrait/{id<\d+>}'
 
 143     controller: Rapsys\AirBundle\Controller\SnippetController::edit
 
 146 rapsysair_terms_of_service:
 
 148         en_gb: '/en/terms-of-service'
 
 149         fr_fr: '/conditions-generales-d-utilisation'
 
 150     controller: Rapsys\AirBundle\Controller\DefaultController::termsOfService
 
 156         fr_fr: '/utilisateur'
 
 157     controller: Rapsys\AirBundle\Controller\DefaultController::userIndex
 
 160 rapsysair_user_milongaraphael:
 
 162         en_gb: '/en/milonga-raphael'
 
 163         fr_fr: '/milonga-raphael'
 
 164     controller: Rapsys\AirBundle\Controller\DefaultController::userView
 
 168         user: 'milonga-raphael'
 
 172         en_gb: '/en/user/{id<\d+>}/{user<[\w-]+>?}'
 
 173         fr_fr: '/utilisateur/{id<\d+>}/{user<[\w-]+>?}'
 
 174     controller: Rapsys\AirBundle\Controller\DefaultController::userView
 
 179         en_gb: '/en/confirm/{hash}/{mail}'
 
 180         fr_fr: '/confirmer/{hash}/{mail}'
 
 181     controller: Rapsys\UserBundle\Controller\UserController::confirm
 
 183         mail: '[a-zA-Z0-9=_-]+'
 
 184         hash: '[a-zA-Z0-9=_-]+'
 
 189         en_gb: '/en/user/{hash}/{mail}'
 
 190         fr_fr: '/utilisateur/{hash}/{mail}'
 
 191     controller: Rapsys\AirBundle\Controller\UserController::edit
 
 193         mail: '[a-zA-Z0-9=_-]+'
 
 194         hash: '[a-zA-Z0-9=_-]+'
 
 199         en_gb: '/en/login/{hash}/{mail}'
 
 200         fr_fr: '/connecter/{hash}/{mail}'
 
 201     controller: Rapsys\UserBundle\Controller\UserController::login
 
 206         mail: '[a-zA-Z0-9=_-]+'
 
 207         hash: '[a-zA-Z0-9=_-]+'
 
 213         fr_fr: '/deconnecter'
 
 218         en_gb: '/en/recover/{hash}/{pass}/{mail}'
 
 219         fr_fr: '/recuperer/{hash}/{pass}/{mail}'
 
 220     controller: Rapsys\UserBundle\Controller\UserController::recover
 
 226         mail: '[a-zA-Z0-9=_-]+'
 
 227         pass: '[a-zA-Z0-9=_-]+'
 
 228         hash: '[a-zA-Z0-9=_-]+'
 
 233         en_gb: '/en/register/{hash}/{field}/{mail}'
 
 234         fr_fr: '/enregistrer/{hash}/{field}/{mail}'
 
 235     controller: Rapsys\UserBundle\Controller\UserController::register
 
 241         mail: '[a-zA-Z0-9=_-]+'
 
 242         field: '[a-zA-Z0-9=_-]+'
 
 243         hash: '[a-zA-Z0-9=_-]+'