| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function getConfigTreeBuilder() |
||
| 17 | { |
||
| 18 | $treeBuilder = new TreeBuilder(); |
||
| 19 | $root = $treeBuilder->root('happyr_auto_fallback_translation'); |
||
| 20 | |||
| 21 | $root->children() |
||
| 22 | ->scalarNode('http_client')->cannotBeEmpty()->defaultValue('httplug.client')->end() |
||
| 23 | ->scalarNode('message_factory')->cannotBeEmpty()->defaultValue('httplug.message_factory')->end() |
||
| 24 | ->enumNode('translation_service')->values(array('google', 'foobar'))->defaultValue('google')->end() |
||
| 25 | ->booleanNode('enabled')->defaultFalse()->end() |
||
| 26 | ->scalarNode('default_locale')->defaultValue('en')->end() |
||
| 27 | ->scalarNode('google_key')->defaultNull()->end() |
||
| 28 | ->end(); |
||
| 29 | |||
| 30 | return $treeBuilder; |
||
| 31 | } |
||
| 32 | } |
||
| 33 |