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 1616use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
1717use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
1818use Symfony \Component \Config \Definition \ConfigurationInterface ;
19+ use Symfony \Component \Security \Http \Session \SessionAuthenticationStrategy ;
1920
2021/**
2122 * This class contains the configuration information.
@@ -60,14 +61,17 @@ public function getConfigTreeBuilder()
6061 $ rootNode
6162 ->children ()
6263 ->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 ()
6468 ->booleanNode ('hide_user_not_found ' )->defaultTrue ()->end ()
6569 ->booleanNode ('always_authenticate_before_granting ' )->defaultFalse ()->end ()
6670 ->booleanNode ('erase_credentials ' )->defaultTrue ()->end ()
6771 ->arrayNode ('access_decision_manager ' )
6872 ->addDefaultsIfNotSet ()
6973 ->children ()
70- ->scalarNode ('strategy ' )->defaultValue (AccessDecisionManager::STRATEGY_AFFIRMATIVE )->end ()
74+ ->enumNode ('strategy ' )-> values ( array ( ' affirmative ' , ' consensus ' , ' unanimous ' ) )->defaultValue (AccessDecisionManager::STRATEGY_AFFIRMATIVE )->end ()
7175 ->booleanNode ('allow_if_all_abstain ' )->defaultFalse ()->end ()
7276 ->booleanNode ('allow_if_equal_granted_denied ' )->defaultTrue ()->end ()
7377 ->end ()
You can’t perform that action at this time.
0 commit comments