Conditions | 1 |
Paths | 1 |
Total Lines | 31 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function getConfigTreeBuilder() |
||
30 | { |
||
31 | $treeBuilder = new TreeBuilder(); |
||
32 | $rootNode = $treeBuilder->root('veslo_sanity'); |
||
33 | |||
34 | $rootNode |
||
35 | ->children() |
||
36 | ->arrayNode('vacancy') |
||
37 | ->children() |
||
38 | ->arrayNode('analyser') |
||
39 | ->children() |
||
40 | ->scalarNode('default_locale') |
||
41 | ->info('Locale which will be used as a default sanity data translation locale') |
||
42 | ->isRequired() |
||
43 | ->cannotBeEmpty() |
||
44 | ->end() |
||
45 | ->arrayNode('locales') |
||
46 | ->info('All locales which are supported for sanity data translations') |
||
47 | ->example(['ru', 'ua', 'en']) |
||
48 | ->requiresAtLeastOneElement() |
||
49 | ->scalarPrototype() |
||
50 | ->end() |
||
51 | ->end() |
||
52 | ->end() |
||
53 | ->end() |
||
54 | ->end() |
||
55 | ->end() |
||
56 | ->end() |
||
57 | ; |
||
58 | |||
59 | return $treeBuilder; |
||
60 | } |
||
62 |