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::