@@ -23,12 +23,15 @@ class Processor
23
23
*
24
24
* @param NodeInterface $configTree The node tree describing the configuration
25
25
* @param array $configs An array of configuration items to process
26
+ * @param bool $normalizeKeys Flag indicating if config key normalization is needed. True by default.
26
27
*
27
28
* @return array The processed configuration
28
29
*/
29
- public function process (NodeInterface $ configTree , array $ configs )
30
+ public function process (NodeInterface $ configTree , array $ configs, $ normalizeKeys = true )
30
31
{
31
- $ configs = self ::normalizeKeys ($ configs );
32
+ if ($ normalizeKeys ) {
33
+ $ configs = self ::normalizeKeys ($ configs );
34
+ }
32
35
33
36
$ currentConfig = array ();
34
37
foreach ($ configs as $ config ) {
@@ -44,12 +47,13 @@ public function process(NodeInterface $configTree, array $configs)
44
47
*
45
48
* @param ConfigurationInterface $configuration The configuration class
46
49
* @param array $configs An array of configuration items to process
50
+ * @param bool $normalizeKeys Flag indicating if config key normalization is needed. True by default.
47
51
*
48
52
* @return array The processed configuration
49
53
*/
50
- public function processConfiguration (ConfigurationInterface $ configuration , array $ configs )
54
+ public function processConfiguration (ConfigurationInterface $ configuration , array $ configs, $ normalizeKeys = true )
51
55
{
52
- return $ this ->process ($ configuration ->getConfigTreeBuilder ()->buildTree (), $ configs );
56
+ return $ this ->process ($ configuration ->getConfigTreeBuilder ()->buildTree (), $ configs, $ normalizeKeys );
53
57
}
54
58
55
59
/**
0 commit comments