From 225d3046b2afaa40f8a23b393abf6400c2605fb4 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sat, 9 Dec 2023 11:32:10 +0100 Subject: [PATCH] Update security.rst Co-authored-by: Wouter de Jong --- security.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/security.rst b/security.rst index cb0c686dc87..6057ba1862e 100644 --- a/security.rst +++ b/security.rst @@ -1847,11 +1847,8 @@ To enable logging out, activate the ``logout`` config parameter under your fire Symfony will then un-authenticate users navigating to the configured ``path``, and redirect them to the configured ``target``. -If your project uses :ref:`Symfony Flex `, you're all set: -the :class:`Symfony\\Bundle\\SecurityBundle\\Routing\\LogoutRouteLoader` will -automatically register a route for every logout URI you configured! -Otherwise, you can enable this behavior yourself by importing the -``security.route_loader.logout`` service as a routing resource: +If your project does not use :ref:`Symfony Flex `, make sure +you have imported the logout route loader in your routes: .. configuration-block::