From: Raphaƫl Gertz Date: Thu, 12 Aug 2021 06:20:06 +0000 (+0200) Subject: Migrate doc to code X-Git-Tag: 0.2.0~59 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/0f917988b2103a83699d4e4575f7a75aade9e5df Migrate doc to code --- 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' ]