File tree 2 files changed +6
-3
lines changed
src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,14 @@ public function addConfiguration(NodeDefinition $node)
139
139
->end ()
140
140
->prototype ('scalar ' )->end ()
141
141
->end ()
142
- ->scalarNode ('catch_exceptions ' )->defaultTrue ()->end ()
142
+ ->booleanNode ('catch_exceptions ' )->defaultTrue ()->end ()
143
143
;
144
144
145
145
foreach ($ this ->options as $ name => $ value ) {
146
146
if (\is_bool ($ value )) {
147
147
$ builder ->booleanNode ($ name )->defaultValue ($ value );
148
+ } elseif (\is_int ($ value )) {
149
+ $ builder ->integerNode ($ name )->defaultValue ($ value );
148
150
} else {
149
151
$ builder ->scalarNode ($ name )->defaultValue ($ value );
150
152
}
Original file line number Diff line number Diff line change @@ -47,11 +47,12 @@ public function getKey()
47
47
public function addConfiguration (NodeDefinition $ node )
48
48
{
49
49
$ node
50
+ ->fixXmlConfig ('default_role ' )
50
51
->children ()
51
52
->scalarNode ('service ' )->isRequired ()->cannotBeEmpty ()->defaultValue ('ldap ' )->end ()
52
53
->scalarNode ('base_dn ' )->isRequired ()->cannotBeEmpty ()->end ()
53
- ->scalarNode ('search_dn ' )->end ()
54
- ->scalarNode ('search_password ' )->end ()
54
+ ->scalarNode ('search_dn ' )->defaultNull ()-> end ()
55
+ ->scalarNode ('search_password ' )->defaultNull ()-> end ()
55
56
->arrayNode ('default_roles ' )
56
57
->beforeNormalization ()->ifString ()->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })->end ()
57
58
->requiresAtLeastOneElement ()
You can’t perform that action at this time.
0 commit comments