From 345f4093d62de96cdb951c77a9ecfa82f31f7893 Mon Sep 17 00:00:00 2001 From: roadiz-ci Date: Tue, 24 Sep 2024 10:01:57 +0000 Subject: [PATCH] chore: Update README.md --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 2348b33..fcb5787 100644 --- a/README.md +++ b/README.md @@ -212,20 +212,21 @@ services: ### Override login link URL Roadiz User Bundle provides a custom `Symfony\Component\Security\Http\LoginLink\LoginLinkHandlerInterface` service to generate a login-link with a different **base-uri**, -all you need is to register `RZ\Roadiz\UserBundle\Security\Security\FrontendLoginLinkHandler` service in your project with its mandatory arguments: +all you need is to register `RZ\Roadiz\UserBundle\Security\FrontendLoginLinkHandler` service in your project with its mandatory arguments: ```yaml # config/services.yaml services: - RZ\Roadiz\UserBundle\Security\Security\FrontendLoginLinkHandler: - $decorated: '@RZ\Roadiz\UserBundle\Security\Security\FrontendLoginLinkHandler.inner' - arguments: - $decorated: '@App\Security\LoginLinkHandler.inner' - $frontendLoginCheckRoute: '%frontend_login_check_route%' - $frontendLoginLinkRequestRoutes: - - 'frontend_login_link_request_route' - - 'another_login_link_request_route' - $signatureHasher: '@security.authenticator.login_link_signature_hasher.api_login_link' + RZ\Roadiz\UserBundle\Security\FrontendLoginLinkHandler: + decorates: Symfony\Component\Security\Http\LoginLink\LoginLinkHandlerInterface + arguments: + $decorated: '@RZ\Roadiz\UserBundle\Security\FrontendLoginLinkHandler.inner' + $frontendLoginCheckRoute: '%frontend_login_check_route%' + $frontendLoginLinkRequestRoutes: + - 'frontend_user_login_link_request' + - 'public_user_login_link_request' + - 'api_user_signup' + $signatureHasher: '@security.authenticator.login_link_signature_hasher.api_login_link' ``` Now for each `$frontendLoginLinkRequestRoutes` login_link will be generated using `$frontendLoginCheckRoute` base URL