| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function getConfigTreeBuilder() |
||
| 29 | { |
||
| 30 | $treeBuilder = new TreeBuilder(); |
||
| 31 | $rootNode = $treeBuilder->root('ongr_router'); |
||
| 32 | |||
| 33 | $rootNode |
||
| 34 | ->children() |
||
| 35 | ->booleanNode('disable_alias') |
||
| 36 | ->info('disables aliasing of Symfony router in case it is done somewhere else') |
||
| 37 | ->defaultFalse() |
||
| 38 | ->end() |
||
| 39 | ->integerNode('router_priority') |
||
| 40 | ->defaultValue(-100) |
||
| 41 | ->info('The priority with which the ONGR router is set to the chain router') |
||
| 42 | ->end() |
||
| 43 | ->scalarNode('manager') |
||
| 44 | ->defaultValue('es.manager.default') |
||
| 45 | ->info('Elasticsearch manager to use in the ONGR default router') |
||
| 46 | ->example('es.manager.default') |
||
| 47 | ->end() |
||
| 48 | ->arrayNode('seo_routes') |
||
| 49 | ->defaultValue([]) |
||
| 50 | ->useAttributeAsKey('name') |
||
| 51 | ->prototype('scalar')->end() |
||
| 52 | ->end() |
||
| 53 | ->end(); |
||
| 54 | |||
| 55 | return $treeBuilder; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |