| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | if (method_exists(TreeBuilder::class, 'getRootNode')) { |
||
| 21 | $treeBuilder = new TreeBuilder('opensoft_rollout'); |
||
| 22 | $rootNode = $treeBuilder->getRootNode(); |
||
| 23 | } else { |
||
| 24 | $treeBuilder = new TreeBuilder(); |
||
| 25 | $rootNode = $treeBuilder->root('opensoft_rollout'); |
||
| 26 | } |
||
| 27 | |||
| 28 | // Here you should define the parameters that are allowed to |
||
| 29 | // configure your bundle. See the documentation linked above for |
||
| 30 | // more information on that topic. |
||
| 31 | |||
| 32 | $rootNode |
||
| 33 | ->children() |
||
| 34 | ->scalarNode('user_provider_service')->isRequired()->end() |
||
| 35 | ->scalarNode('storage_service')->defaultValue('Opensoft\Rollout\Storage\ArrayStorage')->end() |
||
| 36 | ->end(); |
||
| 37 | |||
| 38 | return $treeBuilder; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |