| Conditions | 1 |
| Paths | 1 |
| Total Lines | 32 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | $rootNode = $treeBuilder->root('fieg_statistico'); |
||
| 22 | |||
| 23 | // Here you should define the parameters that are allowed to |
||
| 24 | // configure your bundle. See the documentation linked above for |
||
| 25 | // more information on that topic. |
||
| 26 | |||
| 27 | $rootNode |
||
| 28 | ->children() |
||
| 29 | ->arrayNode('driver') |
||
| 30 | ->isRequired() |
||
| 31 | ->addDefaultsIfNotSet() |
||
| 32 | ->children() |
||
| 33 | ->arrayNode('redis') |
||
| 34 | ->isRequired() |
||
| 35 | ->addDefaultsIfNotSet() |
||
| 36 | ->children() |
||
| 37 | ->scalarNode('client') |
||
| 38 | ->isRequired() |
||
| 39 | ->info('The redis client service') |
||
| 40 | ->end() |
||
| 41 | ->end() |
||
| 42 | ->end() |
||
| 43 | ->end() |
||
| 44 | ->end() |
||
| 45 | ->end() |
||
| 46 | ; |
||
| 47 | |||
| 48 | return $treeBuilder; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |