Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
12 | 2 | public function getConfigTreeBuilder(): TreeBuilder |
|
13 | { |
||
14 | 2 | $treeBuilder = new TreeBuilder(); |
|
15 | 2 | $rootNode = $treeBuilder->root('saikootau_api'); |
|
16 | |||
17 | $rootNode |
||
18 | 2 | ->children() |
|
19 | 2 | ->scalarNode('default_content_type') |
|
20 | 2 | ->defaultValue('application/xml') |
|
21 | 2 | ->info('Which content type to fallback if negotation fails.') |
|
22 | 2 | ->end() |
|
23 | 2 | ->booleanNode('expose_all_errors') |
|
24 | 2 | ->defaultFalse() |
|
25 | 2 | ->info('Whether to expose the whole error stack or just some chosen messages for public use.') |
|
26 | 2 | ->end() |
|
27 | 2 | ->end() |
|
28 | ; |
||
29 | |||
30 | 2 | return $treeBuilder; |
|
31 | } |
||
33 |