From 0f917988b2103a83699d4e4575f7a75aade9e5df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 12 Aug 2021 08:20:06 +0200 Subject: [PATCH] Migrate doc to code --- Handler/LogoutSuccessHandler.php | 3 +++ Resources/config/packages/rapsys_user.yaml | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Handler/LogoutSuccessHandler.php b/Handler/LogoutSuccessHandler.php index 57392dd..de862d5 100644 --- a/Handler/LogoutSuccessHandler.php +++ b/Handler/LogoutSuccessHandler.php @@ -32,6 +32,9 @@ class LogoutSuccessHandler extends DefaultLogoutSuccessHandler { protected $targetUrl; /** + * @xxx Second argument will be replaced by security.firewalls.main.logout.target + * @see vendor/symfony/security-bundle/DependencyInjection/SecurityExtension.php +360 + * * {@inheritdoc} */ public function __construct(ContainerInterface $container, string $targetUrl = '/', RouterInterface $router) { diff --git a/Resources/config/packages/rapsys_user.yaml b/Resources/config/packages/rapsys_user.yaml index 30ade11..14e686f 100644 --- a/Resources/config/packages/rapsys_user.yaml +++ b/Resources/config/packages/rapsys_user.yaml @@ -17,6 +17,4 @@ services: #Register logout success handler security.logout.success_handler: class: 'Rapsys\UserBundle\Handler\LogoutSuccessHandler' - #XXX: second argument will be replaced there by kernel.mail.logout.target - #XXX: vendor/symfony/security-bundle/DependencyInjection/SecurityExtension.php +360 arguments: [ '@service_container', '/', '@router' ] -- 2.41.1