Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function getConfigTreeBuilder(): TreeBuilder |
||
16 | { |
||
17 | $treeBuilder = new TreeBuilder(); |
||
18 | $rootNode = $treeBuilder->root('setono_tiny_png'); |
||
19 | $rootNode |
||
20 | ->addDefaultsIfNotSet() |
||
|
|||
21 | ->children() |
||
22 | ->scalarNode('api_key') |
||
23 | ->isRequired() |
||
24 | ->cannotBeEmpty() |
||
25 | ->info('Your TinyPNG API key') |
||
26 | ->end() |
||
27 | ->scalarNode('proxy') |
||
28 | ->defaultNull() |
||
29 | ->cannotBeEmpty() |
||
30 | ->info('The proxy to use') |
||
31 | ->end() |
||
32 | ->end() |
||
33 | ; |
||
34 | |||
35 | return $treeBuilder; |
||
36 | } |
||
38 |