Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('ezobject_wrapper'); |
||
22 | |||
23 | $rootNode |
||
24 | ->children() |
||
25 | ->scalarNode('default_repository_class') |
||
26 | ->defaultValue('\Kaliop\eZObjectWrapperBundle\Repository\Base') |
||
27 | ->info('The default wrapper class to be used for all content types which have no explicit mapping') |
||
28 | ->end() |
||
29 | ->arrayNode('class_map') |
||
30 | ->defaultValue(array()) |
||
31 | ->info('A list of class names used to implement wrappers for specific content types. Array key is the content type identifier') |
||
32 | ->prototype('scalar')->end() |
||
33 | ->end() |
||
34 | ->end(); |
||
35 | |||
36 | return $treeBuilder; |
||
37 | } |
||
38 | } |
||
39 |