Add calendar related routes and config
authorRaphaël Gertz <git@rapsys.eu>
Wed, 7 Jul 2021 15:21:53 +0000 (17:21 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 7 Jul 2021 15:21:53 +0000 (17:21 +0200)
Resources/config/packages/rapsys_air.yaml
Resources/config/routes/rapsys_air.yaml

index 8b28a5ef7d60a8485c80f4399573774d14045b14..ef9cef958ec8e4c18fe2b6dc139ea06ece037f27 100644 (file)
@@ -281,6 +281,10 @@ services:
     Rapsys\AirBundle\Controller\ApplicationController:
         arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
         tags: [ 'controller.service_arguments' ]
+    #Register calendar controller
+    Rapsys\AirBundle\Controller\CalendarController:
+        arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
+        tags: [ 'controller.service_arguments' ]
     #Register default controller
     Rapsys\AirBundle\Controller\DefaultController:
         arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
@@ -340,6 +344,9 @@ services:
     Rapsys\AirBundle\Command\AttributeCommand:
         arguments: [ '@doctrine' ]
         tags: [ 'console.command' ]
+    Rapsys\AirBundle\Command\CalendarCommand:
+        arguments: [ '@service_container', '@doctrine', '@router', '@translator' ]
+        tags: [ 'console.command' ]
     Rapsys\AirBundle\Command\WeatherCommand:
         arguments: [ '@doctrine' ]
         tags: [ 'console.command' ]
index ca99c4e39f23b68c4de0a657fbcf60b1cf5e8ebb..99e80e8d8ff7c1b852109889eb971ac1e3c5765f 100644 (file)
@@ -14,6 +14,18 @@ rapsys_air_contact:
     controller: Rapsys\AirBundle\Controller\DefaultController::contact
     methods: GET|POST
 
+rapsys_air_calendar:
+    path:
+        en: '/en/calendar'
+        fr: '/calendrier'
+    controller: Rapsys\AirBundle\Controller\CalendarController::index
+    methods: GET|POST
+
+rapsys_air_calendar_callback:
+    path: '/calendar/callback'
+    controller: Rapsys\AirBundle\Controller\CalendarController::callback
+    methods: GET
+
 rapsys_air_frequently_asked_questions:
     path:
         en: '/en/frequently-asked-questions'