[SecurityBundle] Use Enum Nodes Instead Of Scalar
This commit is contained in:
parent
6e314dc733
commit
ce7fb040b6
@ -59,14 +59,14 @@ class MainConfiguration implements ConfigurationInterface
|
|||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('access_denied_url')->defaultNull()->example('/foo/error403')->end()
|
->scalarNode('access_denied_url')->defaultNull()->example('/foo/error403')->end()
|
||||||
->scalarNode('session_fixation_strategy')->cannotBeEmpty()->info('strategy can be: none, migrate, invalidate')->defaultValue('migrate')->end()
|
->enumNode('session_fixation_strategy')->cannotBeEmpty()->values(array('none', 'migrate', 'invalidate'))->defaultValue('migrate')->end()
|
||||||
->booleanNode('hide_user_not_found')->defaultTrue()->end()
|
->booleanNode('hide_user_not_found')->defaultTrue()->end()
|
||||||
->booleanNode('always_authenticate_before_granting')->defaultFalse()->end()
|
->booleanNode('always_authenticate_before_granting')->defaultFalse()->end()
|
||||||
->booleanNode('erase_credentials')->defaultTrue()->end()
|
->booleanNode('erase_credentials')->defaultTrue()->end()
|
||||||
->arrayNode('access_decision_manager')
|
->arrayNode('access_decision_manager')
|
||||||
->addDefaultsIfNotSet()
|
->addDefaultsIfNotSet()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('strategy')->defaultValue('affirmative')->end()
|
->enumNode('strategy')->values(array('affirmative', 'consensus', 'unanimous'))->defaultValue('affirmative')->end()
|
||||||
->booleanNode('allow_if_all_abstain')->defaultFalse()->end()
|
->booleanNode('allow_if_all_abstain')->defaultFalse()->end()
|
||||||
->booleanNode('allow_if_equal_granted_denied')->defaultTrue()->end()
|
->booleanNode('allow_if_equal_granted_denied')->defaultTrue()->end()
|
||||||
->end()
|
->end()
|
||||||
|
Reference in New Issue
Block a user