Skip to content

Commit

Permalink
Update security.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Wouter de Jong <[email protected]>
  • Loading branch information
MatTheCat and wouterj committed Dec 9, 2023
1 parent b904ca9 commit 225d304
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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 <symfony-flex>`, make sure
you have imported the logout route loader in your routes:

.. configuration-block::

Expand Down

0 comments on commit 225d304

Please sign in to comment.