From: Raphaƫl Gertz Date: Wed, 7 Jul 2021 15:21:53 +0000 (+0200) Subject: Add calendar related routes and config X-Git-Tag: 0.2.4~34 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/9a4fd9519332e2056058977a6170f04c4aca2408 Add calendar related routes and config --- 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'