| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function getConfigTreeBuilder() |
||
| 11 | { |
||
| 12 | $treeBuilder = new TreeBuilder(); |
||
| 13 | $rootNode = $treeBuilder->root('pgs_restfony'); |
||
| 14 | |||
| 15 | $rootNode |
||
| 16 | ->children() |
||
| 17 | ->arrayNode('modules') |
||
| 18 | ->prototype('array') |
||
| 19 | ->children() |
||
| 20 | ->scalarNode('controller')->isRequired()->end() |
||
| 21 | ->scalarNode('manager')->isRequired()->end() |
||
| 22 | ->scalarNode('entity')->isRequired()->end() |
||
| 23 | ->scalarNode('form')->end() |
||
| 24 | ->scalarNode('filter')->end() |
||
| 25 | ->arrayNode('sorts') |
||
| 26 | ->prototype('scalar') |
||
| 27 | ->end() |
||
| 28 | ->end() |
||
| 29 | ->end() |
||
| 30 | ; |
||
| 31 | |||
| 32 | return $treeBuilder; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |