From 18c8f91bb9ca82285b92529b1e1dd45255a089ee Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Sun, 28 Oct 2018 15:00:37 +0100 Subject: [PATCH] [Security] The logout_on_user_change firewall option is deprecated --- reference/configuration/security.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 1dfd030c9b0..984422988e6 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -160,14 +160,14 @@ the current firewall and not the other ones. logout_on_user_change ~~~~~~~~~~~~~~~~~~~~~ -**type**: ``boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``true`` -.. versionadded:: 3.4 - The ``logout_on_user_change`` option was introduced in Symfony 3.4. +.. versionadded:: 4.1 + The ``logout_on_user_change`` option was deprecated in Symfony 4.1. -If ``true`` this option makes Symfony to trigger a logout when the user has -changed. Not doing that is deprecated, so this option should be set to ``true`` -to avoid getting deprecation messages. +If ``false`` this option makes Symfony to not trigger a logout when the user has +changed. Doing that is deprecated, so this option should set to ``true`` or +unset to avoid getting deprecation messages. The user is considered to have changed when the user class implements :class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface` and the