| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 5 | public function getConfigTreeBuilder() |
|
| 17 | { |
||
| 18 | 5 | $treeBuilder = new TreeBuilder(); |
|
| 19 | 5 | $rootNode = $treeBuilder->root('yokai_enum'); |
|
| 20 | |||
| 21 | $rootNode |
||
| 22 | 5 | ->children() |
|
| 23 | 5 | ->booleanNode('enum_autoconfiguration') |
|
| 24 | 5 | ->info('If set to true, all services that implements EnumInterface, will obtain the "enum" tag automatically.') |
|
| 25 | 5 | ->defaultTrue() |
|
| 26 | 5 | ->end() |
|
| 27 | 5 | ->booleanNode('enum_registry_autoconfigurable') |
|
| 28 | 5 | ->info('If set to true, add an alias for the enum registry so your service can ask for it via autoconfiguration.') |
|
| 29 | 5 | ->defaultTrue() |
|
| 30 | 5 | ->end() |
|
| 31 | 5 | ->end() |
|
| 32 | ; |
||
| 33 | |||
| 34 | 5 | return $treeBuilder; |
|
| 35 | } |
||
| 36 | } |
||
| 37 |