Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function getConfigTreeBuilder() |
||
21 | { |
||
22 | $treeBuilder = new TreeBuilder(); |
||
23 | $node = $treeBuilder->root('psi_content_type') |
||
24 | ->addDefaultsIfNotSet() |
||
25 | ->children() |
||
26 | ->arrayNode('enabled_storage') |
||
27 | ->info('Enable these storage backends') |
||
28 | ->prototype('scalar')->end() |
||
29 | ->end() |
||
30 | ->arrayNode('storage') |
||
31 | ->addDefaultsIfNotSet() |
||
32 | ->children(); |
||
33 | |||
34 | foreach ($this->storageLoaders as $key => $storageLoader) { |
||
35 | $storageNode = $node->arrayNode($key) |
||
36 | ->addDefaultsIfNotSet() |
||
37 | ->children(); |
||
38 | $storageLoader->configure($storageNode); |
||
39 | } |
||
40 | |||
41 | return $treeBuilder; |
||
42 | } |
||
43 | } |
||
44 |