| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function getConfigTreeBuilder() { |
||
| 30 | $treeBuilder = new TreeBuilder(); |
||
| 31 | $root = $treeBuilder->root('stinger_soft_search'); |
||
| 32 | // @formatter:off |
||
| 33 | $root->children() |
||
| 34 | ->arrayNode('types') |
||
| 35 | ->useAttributeAsKey('name') |
||
| 36 | ->prototype('array') |
||
| 37 | ->children() |
||
| 38 | ->arrayNode('mappings') |
||
| 39 | ->useAttributeAsKey('name') |
||
| 40 | ->cannotBeEmpty() |
||
| 41 | ->prototype('array') |
||
| 42 | ->children() |
||
| 43 | ->scalarNode('propertyPath')->defaultValue(false)->end() |
||
| 44 | ->end() |
||
| 45 | ->end() |
||
| 46 | ->end() |
||
| 47 | ->arrayNode('persistence') |
||
| 48 | ->children() |
||
| 49 | ->scalarNode('model')->end() |
||
| 50 | ->end() |
||
| 51 | ->end() |
||
| 52 | ->end() |
||
| 53 | ->end() |
||
| 54 | ->end(); |
||
| 55 | // @formatter:on |
||
| 56 | |||
| 57 | return $treeBuilder; |
||
| 58 | } |
||
| 59 | } |
||
| 60 |