Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function getConfigTreeBuilder() |
||
11 | { |
||
12 | $treeBuilder = new TreeBuilder(); |
||
13 | $rootNode = $treeBuilder->root('loevgaard_pakkelabels'); |
||
14 | |||
15 | $rootNode |
||
16 | ->children() |
||
17 | ->scalarNode('api_username') |
||
18 | ->isRequired() |
||
19 | ->cannotBeEmpty() |
||
20 | ->end() |
||
21 | ->scalarNode('api_password') |
||
22 | ->isRequired() |
||
23 | ->cannotBeEmpty() |
||
24 | ->end() |
||
25 | ->scalarNode('label_dir') |
||
26 | ->isRequired() |
||
27 | ->cannotBeEmpty() |
||
28 | ->info('The directory where label files are saved') |
||
29 | ->end() |
||
30 | ->end() |
||
31 | ; |
||
32 | |||
33 | return $treeBuilder; |
||
34 | } |
||
35 | } |
||
36 |