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