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
23 en_gb: '/en/contact/{id<\d*>?}/{user<[\w-]*>?}'
24 fr_fr: '/contacter/{id<\d*>?}/{user<[\w-]*>?}'
25 controller: Rapsys\AirBundle\Controller\DefaultController::contact
32 controller: Rapsys\AirBundle\Controller\CalendarController::index
35 rapsys_air_calendar_callback:
36 path: '/calendar/callback'
37 controller: Rapsys\AirBundle\Controller\CalendarController::callback
44 controller: Rapsys\AirBundle\Controller\LocationController::cities
49 'en_gb': '/en/city/{latitude<-?(?:\d*\.)?\d+>}/{longitude<-?(?:\d*\.)?\d+>}/{city<[\w-]+>}'
50 'fr_fr': '/ville/{latitude<-?(?:\d*\.)?\d+>}/{longitude<-?(?:\d*\.)?\d+>}/{city<[\w-]+>}'
51 controller: Rapsys\AirBundle\Controller\LocationController::city
58 controller: Rapsys\AirBundle\Controller\DanceController::index
61 rapsys_air_dance_view:
63 'en_gb': '/en/dance/{id<[0-9]+>}/{name<[\w-]+>}/{type<[\w-]+>}'
64 'fr_fr': '/danse/{id<[0-9]+>}/{name<[\w-]+>}/{type<[\w-]+>}'
65 controller: Rapsys\AirBundle\Controller\DanceController::view
68 rapsys_air_dance_name:
70 'en_gb': '/en/dance/{name<[a-zA-Z0-9=_-]+>}/{dance<[\w-]+>}'
71 'fr_fr': '/danse/{name<[a-zA-Z0-9=_-]+>}/{dance<[\w-]+>}'
72 controller: Rapsys\AirBundle\Controller\DanceController::name
75 rapsys_air_frequently_asked_questions:
77 en_gb: '/en/frequently-asked-questions'
78 fr_fr: '/foire-aux-questions'
79 controller: Rapsys\AirBundle\Controller\DefaultController::frequentlyAskedQuestions
82 rapsys_air_organizer_regulation:
84 en_gb: '/en/organizer-regulation'
85 fr_fr: '/reglement-organisateur'
86 controller: Rapsys\AirBundle\Controller\DefaultController::organizerRegulation
89 rapsys_air_terms_of_service:
91 en_gb: '/en/terms-of-service'
92 fr_fr: '/conditions-generales-d-utilisation'
93 controller: Rapsys\AirBundle\Controller\DefaultController::termsOfService
99 fr_fr: '/contestation'
100 controller: Rapsys\AirBundle\Controller\DefaultController::dispute
105 en_gb: '/en/location'
106 fr_fr: '/emplacement'
107 controller: Rapsys\AirBundle\Controller\LocationController::index
110 rapsys_air_location_view:
112 en_gb: '/en/location/{id<\d+>}/{location<[\w-]+>?}'
113 fr_fr: '/emplacement/{id<\d+>}/{location<[\w-]+>?}'
114 controller: Rapsys\AirBundle\Controller\LocationController::view
117 rapsys_air_application_add:
119 en_gb: '/en/application'
120 fr_fr: '/reservation'
121 controller: Rapsys\AirBundle\Controller\ApplicationController::add
128 controller: Rapsys\AirBundle\Controller\SessionController::index
131 rapsys_air_session_tangoargentin:
133 en_gb: '/en/session/tangoargentin.{!_format?json}'
134 fr_fr: '/seance/tangoargentin.{!_format?json}'
135 controller: Rapsys\AirBundle\Controller\SessionController::tangoargentin
138 rapsys_air_session_view:
140 en_gb: '/en/session/{id<\d+>}/{location<[\w-]+>}/{dance<[\w-]*>?}/{user<[\w-]*>?}'
141 fr_fr: '/seance/{id<\d+>}/{location<[\w-]+>}/{dance<[\w-]*>?}/{user<[\w-]*>?}'
142 controller: Rapsys\AirBundle\Controller\SessionController::view
145 rapsys_air_snippet_add:
149 controller: Rapsys\AirBundle\Controller\SnippetController::add
152 rapsys_air_snippet_edit:
154 en_gb: '/en/snippet/{id<\d+>}'
155 fr_fr: '/extrait/{id<\d+>}'
156 controller: Rapsys\AirBundle\Controller\SnippetController::edit
162 fr_fr: '/utilisateur'
163 controller: Rapsys\AirBundle\Controller\DefaultController::userIndex
166 rapsys_air_user_view:
168 en_gb: '/en/user/{id<\d+>}/{user<[\w-]+>?}'
169 fr_fr: '/utilisateur/{id<\d+>}/{user<[\w-]+>?}'
170 controller: Rapsys\AirBundle\Controller\DefaultController::userView
173 rapsys_air_user_milongaraphael:
175 en_gb: '/en/milonga-raphael'
176 fr_fr: '/milonga-raphael'
177 controller: Rapsys\AirBundle\Controller\DefaultController::userView
181 user: 'milonga-raphael'
185 en_gb: '/en/confirm/{hash}/{mail}'
186 fr_fr: '/confirmer/{hash}/{mail}'
187 controller: Rapsys\UserBundle\Controller\DefaultController::confirm
189 mail: '[a-zA-Z0-9=_-]+'
190 hash: '[a-zA-Z0-9=_-]+'
195 en_gb: '/en/user/{hash}/{mail}'
196 fr_fr: '/utilisateur/{hash}/{mail}'
197 controller: Rapsys\AirBundle\Controller\UserController::edit
199 mail: '[a-zA-Z0-9=_-]+'
200 hash: '[a-zA-Z0-9=_-]+'
205 en_gb: '/en/login/{hash}/{mail}'
206 fr_fr: '/connecter/{hash}/{mail}'
207 controller: Rapsys\UserBundle\Controller\DefaultController::login
212 mail: '[a-zA-Z0-9=_-]+'
213 hash: '[a-zA-Z0-9=_-]+'
219 fr_fr: '/deconnecter'
224 en_gb: '/en/recover/{hash}/{pass}/{mail}'
225 fr_fr: '/recuperer/{hash}/{pass}/{mail}'
226 controller: Rapsys\UserBundle\Controller\DefaultController::recover
232 mail: '[a-zA-Z0-9=_-]+'
233 pass: '[a-zA-Z0-9=_-]+'
234 hash: '[a-zA-Z0-9=_-]+'
237 rapsys_user_register:
239 en_gb: '/en/register/{hash}/{field}/{mail}'
240 fr_fr: '/enregistrer/{hash}/{field}/{mail}'
241 controller: Rapsys\UserBundle\Controller\DefaultController::register
247 mail: '[a-zA-Z0-9=_-]+'
248 field: '[a-zA-Z0-9=_-]+'
249 hash: '[a-zA-Z0-9=_-]+'