Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | public function getConfigTreeBuilder() |
||
22 | { |
||
23 | $treeBuilder = new TreeBuilder(); |
||
24 | $rootNode = $treeBuilder->root('sleepness_uber_translation'); |
||
25 | $rootNode |
||
26 | ->children() |
||
27 | ->arrayNode('memcached') |
||
28 | ->children() |
||
29 | ->scalarNode('host')->end() |
||
30 | ->integerNode('port')->end() |
||
31 | ->end() |
||
32 | ->end() |
||
33 | ->arrayNode('supported_locales') |
||
34 | ->defaultValue(array('en')) |
||
35 | ->prototype('scalar') |
||
36 | ->end() |
||
37 | ; |
||
38 | |||
39 | return $treeBuilder; |
||
40 | } |
||
41 | } |
||
42 |