Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
39 | 1 | public function getConfigTreeBuilder() |
|
40 | { |
||
41 | 1 | $treeBuilder = new TreeBuilder(); |
|
42 | 1 | $rootNode = $treeBuilder->root('graviton_proxy'); |
|
43 | |||
44 | $rootNode |
||
45 | 1 | ->children() |
|
46 | 1 | ->arrayNode('sources') |
|
47 | 1 | ->useAttributeAsKey('name') |
|
48 | 1 | ->prototype('array') |
|
49 | 1 | ->useAttributeAsKey('name') |
|
50 | 1 | ->prototype('array') |
|
51 | 1 | ->children() |
|
52 | 1 | ->scalarNode('prefix')->isRequired()->cannotBeEmpty()->end() |
|
53 | 1 | ->scalarNode('uri')->isRequired()->cannotBeEmpty()->end() |
|
54 | 1 | ->end() |
|
55 | 1 | ->end() |
|
56 | 1 | ->end() |
|
57 | 1 | ->end() // swagger_proxy |
|
58 | 1 | ->end(); |
|
59 | |||
60 | 1 | return $treeBuilder; |
|
61 | } |
||
62 | } |
||
63 |