Skip to content

Commit 2f5e72b

Browse files
committed
minor symfony#14570 [SecurityBundle] Use Enum Nodes Instead Of Scalar (vadim2404)
This PR was merged into the 2.3 branch. Discussion ---------- [SecurityBundle] Use Enum Nodes Instead Of Scalar | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- ce7fb04 [SecurityBundle] Use Enum Nodes Instead Of Scalar
2 parents 8e0f822 + ce7fb04 commit 2f5e72b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ public function getConfigTreeBuilder()
5959
$rootNode
6060
->children()
6161
->scalarNode('access_denied_url')->defaultNull()->example('/foo/error403')->end()
62-
->scalarNode('session_fixation_strategy')->cannotBeEmpty()->info('strategy can be: none, migrate, invalidate')->defaultValue('migrate')->end()
62+
->enumNode('session_fixation_strategy')->cannotBeEmpty()->values(array('none', 'migrate', 'invalidate'))->defaultValue('migrate')->end()
6363
->booleanNode('hide_user_not_found')->defaultTrue()->end()
6464
->booleanNode('always_authenticate_before_granting')->defaultFalse()->end()
6565
->booleanNode('erase_credentials')->defaultTrue()->end()
6666
->arrayNode('access_decision_manager')
6767
->addDefaultsIfNotSet()
6868
->children()
69-
->scalarNode('strategy')->defaultValue('affirmative')->end()
69+
->enumNode('strategy')->values(array('affirmative', 'consensus', 'unanimous'))->defaultValue('affirmative')->end()
7070
->booleanNode('allow_if_all_abstain')->defaultFalse()->end()
7171
->booleanNode('allow_if_equal_granted_denied')->defaultTrue()->end()
7272
->end()

0 commit comments

Comments
 (0)