| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 24 |
| CRAP Score | 1 |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | 24 | public function getConfigTreeBuilder() |
|
| 14 | { |
||
| 15 | 12 | $treeBuilder = new TreeBuilder(); |
|
| 16 | 12 | $rootNode = $treeBuilder->root('zenstruck_cache'); |
|
| 17 | |||
| 18 | $rootNode |
||
| 19 | 24 | ->children() |
|
| 20 | 24 | ->scalarNode('http_client') |
|
| 21 | 24 | ->info('Either a class or a service that implements Http\Client\HttpClient.') |
|
| 22 | 24 | ->isRequired() |
|
| 23 | 24 | ->end() |
|
| 24 | 24 | ->scalarNode('message_factory') |
|
| 25 | 24 | ->info('Either a class or a service that implements Http\Message\MessageFactory.') |
|
| 26 | 24 | ->isRequired() |
|
| 27 | 24 | ->end() |
|
| 28 | 24 | ->arrayNode('sitemap_provider') |
|
| 29 | 24 | ->canBeEnabled() |
|
| 30 | 24 | ->children() |
|
| 31 | 24 | ->arrayNode('sitemaps') |
|
| 32 | 24 | ->requiresAtLeastOneElement() |
|
| 33 | 12 | ->prototype('scalar')->end() |
|
| 34 | 24 | ->end() |
|
| 35 | 24 | ->end() |
|
| 36 | 24 | ->end() |
|
| 37 | 24 | ->end() |
|
| 38 | 12 | ; |
|
| 39 | |||
| 40 | 24 | return $treeBuilder; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |