Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('mykees_media'); |
||
22 | |||
23 | $rootNode |
||
24 | ->children() |
||
25 | ->arrayNode('allowExtension') |
||
26 | ->prototype('scalar') |
||
27 | ->end() |
||
28 | ->end() |
||
29 | ->scalarNode('path')->end() |
||
30 | ->arrayNode('resize') |
||
31 | ->prototype('array') |
||
32 | ->children() |
||
33 | ->scalarNode('mode')->end() |
||
34 | ->arrayNode('size') |
||
35 | ->prototype('variable') |
||
36 | ->end() |
||
37 | ->end() |
||
38 | ->end() |
||
39 | ->end() |
||
40 | ->end() |
||
41 | ->end() |
||
42 | ; |
||
43 | return $treeBuilder; |
||
44 | } |
||
45 | } |
||
46 |