| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 19 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 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 | ->scalarNode('host')->cannotBeEmpty()->end() |
|
| 55 | 1 | ->end() |
|
| 56 | 1 | ->end() |
|
| 57 | 1 | ->end() |
|
| 58 | 1 | ->end() // swagger_proxy |
|
| 59 | 1 | ->end(); |
|
| 60 | |||
| 61 | 1 | return $treeBuilder; |
|
| 62 | } |
||
| 63 | } |
||
| 64 |