From 9a4fd9519332e2056058977a6170f04c4aca2408 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 7 Jul 2021 17:21:53 +0200 Subject: [PATCH 1/1] Add calendar related routes and config --- Resources/config/packages/rapsys_air.yaml | 7 +++++++ Resources/config/routes/rapsys_air.yaml | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Resources/config/packages/rapsys_air.yaml b/Resources/config/packages/rapsys_air.yaml index 8b28a5e..ef9cef9 100644 --- a/Resources/config/packages/rapsys_air.yaml +++ b/Resources/config/packages/rapsys_air.yaml @@ -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' ] diff --git a/Resources/config/routes/rapsys_air.yaml b/Resources/config/routes/rapsys_air.yaml index ca99c4e..99e80e8 100644 --- a/Resources/config/routes/rapsys_air.yaml +++ b/Resources/config/routes/rapsys_air.yaml @@ -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' -- 2.41.1