| Conditions | 1 |
| Paths | 1 |
| Total Lines | 37 |
| Code Lines | 32 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 29 | public function getConfigTreeBuilder() |
||
| 30 | { |
||
| 31 | $treeBuilder = new TreeBuilder(); |
||
| 32 | $rootNode = $treeBuilder->root('swp_updater', 'array'); |
||
| 33 | |||
| 34 | $rootNode |
||
| 35 | ->children() |
||
| 36 | ->scalarNode('version_class') |
||
| 37 | ->isRequired() |
||
| 38 | ->cannotBeEmpty() |
||
| 39 | ->end() |
||
| 40 | ->scalarNode('temp_dir') |
||
| 41 | ->defaultValue('default') |
||
| 42 | ->end() |
||
| 43 | ->booleanNode('monolog_channel') |
||
| 44 | ->defaultFalse() |
||
| 45 | ->end() |
||
| 46 | ->scalarNode('target_dir') |
||
| 47 | ->defaultValue('default') |
||
| 48 | ->end() |
||
| 49 | ->arrayNode('client') |
||
| 50 | ->addDefaultsIfNotSet() |
||
| 51 | ->children() |
||
| 52 | ->scalarNode('base_uri') |
||
| 53 | ->cannotBeEmpty() |
||
| 54 | ->isRequired() |
||
| 55 | ->end() |
||
| 56 | ->scalarNode('type') |
||
| 57 | ->defaultValue('default') |
||
| 58 | ->end() |
||
| 59 | ->end() |
||
| 60 | ->end() |
||
| 61 | ->end() |
||
| 62 | ; |
||
| 63 | |||
| 64 | return $treeBuilder; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |