File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 16
16
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
17
17
use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
18
18
use Symfony \Component \Config \Definition \ConfigurationInterface ;
19
+ use Symfony \Component \Security \Http \Session \SessionAuthenticationStrategy ;
19
20
20
21
/**
21
22
* This class contains the configuration information.
@@ -60,14 +61,17 @@ public function getConfigTreeBuilder()
60
61
$ rootNode
61
62
->children ()
62
63
->scalarNode ('access_denied_url ' )->defaultNull ()->example ('/foo/error403 ' )->end ()
63
- ->scalarNode ('session_fixation_strategy ' )->cannotBeEmpty ()->info ('strategy can be: none, migrate, invalidate ' )->defaultValue ('migrate ' )->end ()
64
+ ->enumNode ('session_fixation_strategy ' )
65
+ ->values (array (SessionAuthenticationStrategy::NONE , SessionAuthenticationStrategy::MIGRATE , SessionAuthenticationStrategy::INVALIDATE ))
66
+ ->defaultValue (SessionAuthenticationStrategy::MIGRATE )
67
+ ->end ()
64
68
->booleanNode ('hide_user_not_found ' )->defaultTrue ()->end ()
65
69
->booleanNode ('always_authenticate_before_granting ' )->defaultFalse ()->end ()
66
70
->booleanNode ('erase_credentials ' )->defaultTrue ()->end ()
67
71
->arrayNode ('access_decision_manager ' )
68
72
->addDefaultsIfNotSet ()
69
73
->children ()
70
- ->scalarNode ('strategy ' )->defaultValue (AccessDecisionManager::STRATEGY_AFFIRMATIVE )->end ()
74
+ ->enumNode ('strategy ' )-> values ( array ( ' affirmative ' , ' consensus ' , ' unanimous ' ) )->defaultValue (AccessDecisionManager::STRATEGY_AFFIRMATIVE )->end ()
71
75
->booleanNode ('allow_if_all_abstain ' )->defaultFalse ()->end ()
72
76
->booleanNode ('allow_if_equal_granted_denied ' )->defaultTrue ()->end ()
73
77
->end ()
You can’t perform that action at this time.
0 commit comments