Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 17 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
13 | 24 | public function getConfigTreeBuilder() |
|
14 | { |
||
15 | 24 | $treeBuilder = new TreeBuilder(); |
|
16 | 24 | $rootNode = $treeBuilder->root('tree_house_base_api'); |
|
17 | $rootNode |
||
18 | 24 | ->children() |
|
19 | 24 | ->scalarNode('token_host') |
|
20 | 24 | ->isRequired() |
|
21 | 24 | ->end() |
|
22 | 24 | ->scalarNode('host') |
|
23 | 24 | ->isRequired() |
|
24 | 24 | ->end() |
|
25 | 24 | ->scalarNode('allowed_origins') |
|
26 | 24 | ->info('CORS: specifies which origins are allowed to access the api.') |
|
27 | 24 | ->example('http://example.org') |
|
28 | 24 | ->defaultValue('*') |
|
29 | 24 | ->end() |
|
30 | 24 | ->end() |
|
31 | ; |
||
32 | |||
33 | 24 | return $treeBuilder; |
|
34 | } |
||
35 | } |
||
36 |