[SecurityBundle] use access decision constants in config
This commit is contained in:
parent
e12359303d
commit
54311dafae
@ -71,7 +71,10 @@ class MainConfiguration implements ConfigurationInterface
|
||||
->arrayNode('access_decision_manager')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->enumNode('strategy')->values(array('affirmative', 'consensus', 'unanimous'))->defaultValue(AccessDecisionManager::STRATEGY_AFFIRMATIVE)->end()
|
||||
->enumNode('strategy')
|
||||
->values(array(AccessDecisionManager::STRATEGY_AFFIRMATIVE, AccessDecisionManager::STRATEGY_CONSENSUS, AccessDecisionManager::STRATEGY_UNANIMOUS))
|
||||
->defaultValue(AccessDecisionManager::STRATEGY_AFFIRMATIVE)
|
||||
->end()
|
||||
->booleanNode('allow_if_all_abstain')->defaultFalse()->end()
|
||||
->booleanNode('allow_if_equal_granted_denied')->defaultTrue()->end()
|
||||
->end()
|
||||
|
Reference in New Issue
Block a user