| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 19 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 1 | private function getCacheTree(ArrayNodeDefinition $rootNode) |
|
| 32 | { |
||
| 33 | return $rootNode |
||
| 34 | 1 | ->fixXmlConfig('cache') |
|
| 35 | 1 | ->children() |
|
| 36 | 1 | ->arrayNode('caches') |
|
| 37 | 1 | ->addDefaultsIfNotSet() |
|
| 38 | 1 | ->children() |
|
| 39 | 1 | ->arrayNode('rules') |
|
| 40 | 1 | ->addDefaultsIfNotSet() |
|
| 41 | 1 | ->children() |
|
| 42 | 1 | ->scalarNode('adapter') |
|
| 43 | 1 | ->isRequired() |
|
| 44 | 1 | ->cannotBeEmpty() |
|
| 45 | 1 | ->defaultValue('app.cache') |
|
| 46 | 1 | ->end() |
|
| 47 | 1 | ->end() |
|
|
|
|||
| 48 | 1 | ->end() |
|
| 49 | 1 | ->end() |
|
| 50 | 1 | ->end() |
|
| 51 | 1 | ->end(); |
|
| 52 | } |
||
| 54 |