| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| Code Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 28 |
| CRAP Score | 1 |
| Changes | 7 | ||
| Bugs | 0 | Features | 4 |
| 1 | <?php |
||
| 22 | 4 | public function getConfigTreeBuilder() |
|
| 23 | { |
||
| 24 | 4 | $treeBuilder = new TreeBuilder(); |
|
| 25 | 4 | $rootNode = $treeBuilder->root('dpn_xml_sitemap'); |
|
| 26 | |||
| 27 | $rootNode |
||
| 28 | 4 | ->children() |
|
| 29 | 4 | ->scalarNode('http_cache') |
|
| 30 | 4 | ->defaultNull() |
|
| 31 | 4 | ->info('The length of time (in seconds) to cache the sitemap/sitemap_index xml\'s (a reverse proxy is required)') |
|
| 32 | 4 | ->end() |
|
| 33 | 4 | ->scalarNode('max_per_sitemap') |
|
| 34 | 4 | ->defaultValue(50000) |
|
| 35 | 4 | ->info('The number of url entries in a single sitemap') |
|
| 36 | 4 | ->end() |
|
| 37 | 4 | ->arrayNode('defaults') |
|
| 38 | 4 | ->info('The default options for sitemap URL entries to be used if not overridden') |
|
| 39 | 4 | ->addDefaultsIfNotSet() |
|
| 40 | 4 | ->children() |
|
| 41 | 4 | ->scalarNode('priority') |
|
| 42 | 4 | ->defaultNull() |
|
| 43 | 4 | ->info('Value between 0.0 and 1.0 or null for sitemap protocol default') |
|
| 44 | 4 | ->end() |
|
| 45 | 4 | ->scalarNode('changefreq') |
|
| 46 | 4 | ->defaultNull() |
|
| 47 | 4 | ->info('One of [always, hourly, daily, weekly, monthly, yearly, never] or null for sitemap protocol default') |
|
| 48 | 4 | ->end() |
|
| 49 | 4 | ->end() |
|
| 50 | 4 | ->end() |
|
| 51 | 4 | ->end() |
|
| 52 | ; |
||
| 53 | |||
| 54 | 4 | return $treeBuilder; |
|
| 55 | } |
||
| 56 | } |
||
| 57 |