Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function getConfigTreeBuilder() |
||
35 | { |
||
36 | $treeBuilder = new TreeBuilder(); |
||
37 | $rootNode = $treeBuilder->root(static::ROOT_NODE); |
||
38 | |||
39 | // add node definitions to the root of the tree |
||
40 | $rootNode |
||
41 | ->children() |
||
42 | ->scalarNode(static::HOST[static::NODE_NAME]) |
||
43 | ->defaultValue(static::HOST[static::NODE_DEFAULT_VALUE]) |
||
44 | ->info('Contains the Livebox IP address or local DNS name. Default to 192.168.1.1') |
||
45 | ->end() |
||
46 | ->scalarNode(static::USER[static::NODE_NAME]) |
||
47 | ->defaultValue(static::USER[static::NODE_DEFAULT_VALUE]) |
||
48 | ->info('Contains user for connecting. Default to admin') |
||
49 | ->end() |
||
50 | ->scalarNode(static::PASSWORD) |
||
51 | ->info('Contains password for connecting') |
||
52 | ->isRequired() |
||
53 | ->cannotBeEmpty() |
||
54 | ->end() |
||
55 | ->end() |
||
56 | ; |
||
57 | |||
58 | return $treeBuilder; |
||
59 | } |
||
60 | } |