@@ -132,10 +132,10 @@ private function addRoleHierarchySection(ArrayNodeDefinition $rootNode)
132
132
->useAttributeAsKey ('id ' )
133
133
->prototype ('array ' )
134
134
->performNoDeepMerging ()
135
- ->beforeNormalization ()->ifString ()->then (function ($ v ) { return array ('value ' => $ v ); })->end ()
135
+ ->beforeNormalization ()->ifString ()->then (function ($ v ) { return array ('value ' => $ v ); })->end ()
136
136
->beforeNormalization ()
137
- ->ifTrue (function ($ v ) { return is_array ($ v ) && isset ($ v ['value ' ]); })
138
- ->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ['value ' ]); })
137
+ ->ifTrue (function ($ v ) { return is_array ($ v ) && isset ($ v ['value ' ]); })
138
+ ->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ['value ' ]); })
139
139
->end ()
140
140
->prototype ('scalar ' )->end ()
141
141
->end ()
@@ -162,18 +162,18 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode)
162
162
->end ()
163
163
->scalarNode ('host ' )->defaultNull ()->end ()
164
164
->arrayNode ('ips ' )
165
- ->beforeNormalization ()->ifString ()->then (function ($ v ) { return array ($ v ); })->end ()
165
+ ->beforeNormalization ()->ifString ()->then (function ($ v ) { return array ($ v ); })->end ()
166
166
->prototype ('scalar ' )->end ()
167
167
->end ()
168
168
->arrayNode ('methods ' )
169
- ->beforeNormalization ()->ifString ()->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })->end ()
169
+ ->beforeNormalization ()->ifString ()->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })->end ()
170
170
->prototype ('scalar ' )->end ()
171
171
->end ()
172
172
->end ()
173
173
->fixXmlConfig ('role ' )
174
174
->children ()
175
175
->arrayNode ('roles ' )
176
- ->beforeNormalization ()->ifString ()->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })->end ()
176
+ ->beforeNormalization ()->ifString ()->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })->end ()
177
177
->prototype ('scalar ' )->end ()
178
178
->end ()
179
179
->end ()
@@ -223,8 +223,8 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
223
223
->children ()
224
224
->arrayNode ('delete_cookies ' )
225
225
->beforeNormalization ()
226
- ->ifTrue (function ($ v ) { return is_array ($ v ) && is_int (key ($ v )); })
227
- ->then (function ($ v ) { return array_map (function ($ v ) { return array ('name ' => $ v ); }, $ v ); })
226
+ ->ifTrue (function ($ v ) { return is_array ($ v ) && is_int (key ($ v )); })
227
+ ->then (function ($ v ) { return array_map (function ($ v ) { return array ('name ' => $ v ); }, $ v ); })
228
228
->end ()
229
229
->useAttributeAsKey ('name ' )
230
230
->prototype ('array ' )
@@ -278,10 +278,10 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
278
278
$ firewallNodeBuilder
279
279
->end ()
280
280
->validate ()
281
- ->ifTrue (function ($ v ) {
281
+ ->ifTrue (function ($ v ) {
282
282
return true === $ v ['security ' ] && isset ($ v ['pattern ' ]) && !isset ($ v ['request_matcher ' ]);
283
283
})
284
- ->then (function ($ firewall ) use ($ abstractFactoryKeys ) {
284
+ ->then (function ($ firewall ) use ($ abstractFactoryKeys ) {
285
285
foreach ($ abstractFactoryKeys as $ k ) {
286
286
if (!isset ($ firewall [$ k ]['check_path ' ])) {
287
287
continue ;
@@ -331,7 +331,7 @@ private function addProvidersSection(ArrayNodeDefinition $rootNode)
331
331
->arrayNode ('providers ' )
332
332
->beforeNormalization ()
333
333
->ifString ()
334
- ->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })
334
+ ->then (function ($ v ) { return preg_split ('/\s*,\s*/ ' , $ v ); })
335
335
->end ()
336
336
->prototype ('scalar ' )->end ()
337
337
->end ()
@@ -349,11 +349,11 @@ private function addProvidersSection(ArrayNodeDefinition $rootNode)
349
349
350
350
$ providerNodeBuilder
351
351
->validate ()
352
- ->ifTrue (function ($ v ){return count ($ v ) > 1 ;})
352
+ ->ifTrue (function ($ v ) {return count ($ v ) > 1 ;})
353
353
->thenInvalid ('You cannot set multiple provider types for the same provider ' )
354
354
->end ()
355
355
->validate ()
356
- ->ifTrue (function ($ v ){return count ($ v ) === 0 ;})
356
+ ->ifTrue (function ($ v ) {return count ($ v ) === 0 ;})
357
357
->thenInvalid ('You must set a provider definition for the provider. ' )
358
358
->end ()
359
359
;
@@ -378,7 +378,7 @@ private function addEncodersSection(ArrayNodeDefinition $rootNode)
378
378
->prototype ('array ' )
379
379
->canBeUnset ()
380
380
->performNoDeepMerging ()
381
- ->beforeNormalization ()->ifString ()->then (function ($ v ) { return array ('algorithm ' => $ v ); })->end ()
381
+ ->beforeNormalization ()->ifString ()->then (function ($ v ) { return array ('algorithm ' => $ v ); })->end ()
382
382
->children ()
383
383
->scalarNode ('algorithm ' )->cannotBeEmpty ()->end ()
384
384
->scalarNode ('hash_algorithm ' )->info ('Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms. ' )->defaultValue ('sha512 ' )->end ()
0 commit comments