| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | |||
| 22 | $treeBuilder->root('debril_rss_atom') |
||
| 23 | ->children() |
||
| 24 | ->booleanNode('private') |
||
| 25 | ->info('Change cache headers so the RSS feed is not cached by public caches (like reverse-proxies...).') |
||
| 26 | ->defaultValue(false) |
||
| 27 | ->end() |
||
| 28 | ->arrayNode('date_formats') |
||
| 29 | ->prototype('scalar')->end() |
||
| 30 | ->end() |
||
| 31 | ->enumNode('driver') |
||
| 32 | ->info('Driver to use to fetch RSS feed. Valid values are "curl" (default), "file", "guzzle", "service".') |
||
| 33 | ->values(array('curl', 'file', 'guzzle', 'service')) |
||
| 34 | ->defaultValue('curl') |
||
| 35 | ->end() |
||
| 36 | ->scalarNode('driver_service') |
||
| 37 | ->info('If driver is set to "csa-guzzle" or "service", the ID of the service to use') |
||
| 38 | ->end() |
||
| 39 | ->end() |
||
| 40 | ; |
||
| 41 | |||
| 42 | // Here you should define the parameters that are allowed to |
||
| 43 | // configure your bundle. See the documentation linked above for |
||
| 44 | // more information on that topic. |
||
| 45 | return $treeBuilder; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |