Skip to content

Commit 7ed03fe

Browse files
committed
[SecurityBundle] use access decision constants in config
1 parent 309b626 commit 7ed03fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DependencyInjection/MainConfiguration.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ public function getConfigTreeBuilder()
7171
->arrayNode('access_decision_manager')
7272
->addDefaultsIfNotSet()
7373
->children()
74-
->enumNode('strategy')->values(array('affirmative', 'consensus', 'unanimous'))->defaultValue(AccessDecisionManager::STRATEGY_AFFIRMATIVE)->end()
74+
->enumNode('strategy')
75+
->values(array(AccessDecisionManager::STRATEGY_AFFIRMATIVE, AccessDecisionManager::STRATEGY_CONSENSUS, AccessDecisionManager::STRATEGY_UNANIMOUS))
76+
->defaultValue(AccessDecisionManager::STRATEGY_AFFIRMATIVE)
77+
->end()
7578
->booleanNode('allow_if_all_abstain')->defaultFalse()->end()
7679
->booleanNode('allow_if_equal_granted_denied')->defaultTrue()->end()
7780
->end()

0 commit comments

Comments
 (0)