From ab714591c11a19c0b58da3668796e4c2e34535f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 26 Nov 2019 23:29:22 +0100 Subject: [PATCH] Add configurations files --- Resources/config/packages/rapsys_user.yaml | 10 ++++++++ Resources/config/routes/rapsys_user.yaml | 30 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 Resources/config/packages/rapsys_user.yaml create mode 100644 Resources/config/routes/rapsys_user.yaml diff --git a/Resources/config/packages/rapsys_user.yaml b/Resources/config/packages/rapsys_user.yaml new file mode 100644 index 0000000..ce6e4fc --- /dev/null +++ b/Resources/config/packages/rapsys_user.yaml @@ -0,0 +1,10 @@ +#Service configuration +services: + #Register default controller + Rapsys\UserBundle\Controller\DefaultController: + arguments: [ '@service_container', '@translator', '@router' ] + autowire: true + tags: [ 'controller.service_arguments' ] + #Register slugger utils service + Rapsys\UserBundle\Utils\Slugger: + arguments: [ '@service_container' ] diff --git a/Resources/config/routes/rapsys_user.yaml b/Resources/config/routes/rapsys_user.yaml new file mode 100644 index 0000000..c688137 --- /dev/null +++ b/Resources/config/routes/rapsys_user.yaml @@ -0,0 +1,30 @@ +rapsys_user_login: + path: /login + controller: Rapsys\UserBundle\Controller\DefaultController::login + methods: GET|POST + +rapsys_user_recover: + path: /recover + controller: Rapsys\UserBundle\Controller\DefaultController::recover + methods: GET|POST + +rapsys_user_recover_mail: + path: /recover/{recipient}/{hash} + controller: Rapsys\UserBundle\Controller\DefaultController::recoverMail + requirements: + recipient: '[a-zA-Z0-9=_-]+' + hash: '[a-zA-Z0-9=_-]+' + methods: GET|POST + +rapsys_user_register: + path: /register + controller: Rapsys\UserBundle\Controller\DefaultController::register + methods: GET|POST + +rapsys_user_logout: + path: /logout + methods: GET + +rapsys_user_index: + path: / + methods: GET -- 2.41.1