Conditions | 2 |
Paths | 2 |
Total Lines | 31 |
Code Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 11 | ||
Bugs | 1 | Features | 3 |
1 | <?php |
||
14 | public function getConfigTreeBuilder() |
||
15 | { |
||
16 | $builders = [ |
||
17 | 'constraint_validator', |
||
18 | 'doctrine', |
||
19 | 'doctrine_mongodb', |
||
20 | 'form_type_extension', |
||
21 | 'security_voter', |
||
22 | 'twig_extension', |
||
23 | ]; |
||
24 | |||
25 | $nodes = new ArrayNodeDefinition('enable'); |
||
26 | |||
27 | foreach ($builders as $builder) { |
||
28 | $nodes->children()->append($this->buildDefinitionBuilderNode($builder)); |
||
29 | } |
||
30 | |||
31 | $builder = new TreeBuilder(); |
||
32 | $builder |
||
33 | ->root('knp_rad_auto_registration') |
||
34 | ->children() |
||
35 | ->append($nodes) |
||
36 | ->arrayNode('bundles') |
||
37 | ->prototype('scalar')->end() |
||
38 | ->defaultValue([]) |
||
39 | ->end() |
||
40 | ->end() |
||
41 | ; |
||
42 | |||
43 | return $builder; |
||
44 | } |
||
45 | |||
67 |