| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function getConfigTreeBuilder() |
||
| 11 | { |
||
| 12 | $treeBuilder = new TreeBuilder('db3v4l'); |
||
| 13 | |||
| 14 | $treeBuilder->getRootNode() |
||
| 15 | ->children() |
||
| 16 | ->arrayNode('database_instances') |
||
| 17 | ->useAttributeAsKey('name') |
||
| 18 | ->arrayPrototype() |
||
| 19 | ->children() |
||
| 20 | /// @todo check which ones of these are mandatory; which ones can have requirements added |
||
| 21 | ->scalarNode('charset')->end() |
||
| 22 | ->scalarNode('driver')->end() |
||
| 23 | ->scalarNode('host')->end() |
||
| 24 | ->scalarNode('password')->end() |
||
| 25 | ->scalarNode('path')->end() |
||
| 26 | ->scalarNode('port')->end() |
||
| 27 | ->scalarNode('servicename')->end() |
||
| 28 | ->scalarNode('user')->end() |
||
| 29 | ->scalarNode('vendor')->end() |
||
| 30 | ->scalarNode('version')->end() |
||
| 31 | ->end() |
||
| 32 | ->end() |
||
| 33 | ->end() |
||
| 34 | ->end() |
||
| 35 | ; |
||
| 36 | |||
| 37 | return $treeBuilder; |
||
| 38 | } |
||
| 40 |