8000 minor #25315 [SecurityBundle] add note to info text of no-op config l… · symfony/symfony@09de0cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 09de0cd

Browse files
author
Robin Chalas
committed
minor #25315 [SecurityBundle] add note to info text of no-op config logout_on_user_change (dmaicher)
This PR was merged into the 4.0 branch. Discussion ---------- [SecurityBundle] add note to info text of no-op config logout_on_user_change | Q | A | ------------- | --- | Branch? | 4.0 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - While discussing the "deprecation path" of the `logout_on_user_change` security option with @chalasr I got a bit confused. - on 3.4 we added the option (default=false) and triggered a deprecation in case it's false - on 4.0 the default became true **and the option is no-op** (does not change anything if its set to false) - on 4.1 the option is additionally also deprecated So maybe we should change the info text of the config node to mention that its effectively no-op since 4.0. WDYT? Commits ------- dec77f1 [SecurityBundle] add note to info text of no-op config option logout_on_user_change
2 parents bf017a9 + dec77f1 commit 09de0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
199199
->scalarNode('context')->cannotBeEmpty()->end()
200200
->booleanNode('logout_on_user_change')
201201
->defaultTrue()
202-
->info('When true, it will trigger a logout for the user if something has changed.')
202+
->info('When true, it will trigger a logout for the user if something has changed. Note: No-Op option since 4.0. Will always be true.')
203203
->end()
204204
->arrayNode('logout')
205205
->treatTrueLike(array())

0 commit comments

Comments
 (0)
0