| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 16 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 14 | 24 | public function getConfigTreeBuilder() |
|
| 15 | { |
||
| 16 | 24 | $server = new ServerConfiguration; |
|
| 17 | 24 | $treeBuilder = new TreeBuilder; |
|
| 18 | 24 | $root = $treeBuilder->root('innmind_rest'); |
|
| 19 | |||
| 20 | $root |
||
| 21 | 24 | ->children() |
|
| 22 | 24 | ->arrayNode('server') |
|
| 23 | 24 | ->append($server->getCollectionNode()) |
|
| 24 | 24 | ->children() |
|
| 25 | 24 | ->scalarNode('prefix') |
|
| 26 | 24 | ->info('Prefix for all routes of the API') |
|
| 27 | 24 | ->defaultValue(null) |
|
| 28 | 24 | ->end() |
|
| 29 | 24 | ->end() |
|
| 30 | 24 | ->end() |
|
| 31 | 24 | ->end(); |
|
| 32 | |||
| 33 | 24 | return $treeBuilder; |
|
| 34 | } |
||
| 35 | } |
||
| 36 |