feat: link travelinfo from MyE&P by travel code

This commit is contained in:
Björn Fromme
2025-01-06 15:34:54 +01:00
parent 8312b61bac
commit 6da01ca9b7
7 changed files with 492 additions and 412 deletions
+7
View File
@@ -265,6 +265,11 @@ routeEnhancers:
_controller: 'Travelinfo::myep'
_arguments:
buspro_id: busProId
-
routePath: '/{travel_code}'
_controller: 'Travelinfo::travelCode'
_arguments:
travel_code: travelCode
defaultController: 'Travelinfo::index'
aspects:
travel_info:
@@ -275,6 +280,8 @@ routeEnhancers:
type: PassthroughMapper
buspro_id:
type: PassthroughMapper
travel_code:
type: PassthroughMapper
requirements:
travel_date: '\d{4}\-\d{2}\-\d{2}|\d{2}\d{2}\d{4}'
buspro_id: '\d+'