File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
16
16
use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
17
17
use Symfony \Component \Config \Definition \ConfigurationInterface ;
18
+ use Symfony \Component \Security \Http \Session \SessionAuthenticationStrategy ;
18
19
19
20
/**
20
21
* This class contains the configuration information.
@@ -59,7 +60,10 @@ public function getConfigTreeBuilder()
59
60
$ rootNode
60
61
->children ()
61
62
->scalarNode ('access_denied_url ' )->defaultNull ()->example ('/foo/error403 ' )->end ()
62
- ->enumNode ('session_fixation_strategy ' )->cannotBeEmpty ()->values (array ('none ' , 'migrate ' , 'invalidate ' ))->defaultValue ('migrate ' )->end ()
63
+ ->enumNode ('session_fixation_strategy ' )
64
+ ->values (array (SessionAuthenticationStrategy::NONE , SessionAuthenticationStrategy::MIGRATE , SessionAuthenticationStrategy::INVALIDATE ))
65
+ ->defaultValue (SessionAuthenticationStrategy::MIGRATE )
66
+ ->end ()
63
67
->booleanNode ('hide_user_not_found ' )->defaultTrue ()->end ()
64
68
->booleanNode ('always_authenticate_before_granting ' )->defaultFalse ()->end ()
65
69
->booleanNode ('erase_credentials ' )->defaultTrue ()->end ()
You can’t perform that action at this time.
0 commit comments