Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Lines | 0 |
Ratio | 0 % |
Tests | 25 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
18 | 2 | public function getConfigTreeBuilder() |
|
19 | { |
||
20 | 2 | $treeBuilder = new TreeBuilder(); |
|
21 | 2 | $rootNode = $treeBuilder->root('mewes_k_twig_spreadsheet'); |
|
22 | |||
23 | $rootNode |
||
24 | 2 | ->children() |
|
25 | 2 | ->booleanNode('pre_calculate_formulas') |
|
26 | 2 | ->defaultTrue() |
|
27 | 2 | ->info('Disabling formula calculations can improve the performance but the resulting documents won\'t immediately show formula results in external programs.') |
|
28 | 2 | ->end() |
|
29 | 2 | ->arrayNode('cache') |
|
30 | 2 | ->addDefaultsIfNotSet() |
|
31 | 2 | ->children() |
|
32 | 2 | ->scalarNode('bitmap') |
|
33 | 2 | ->defaultValue('"%kernel.cache_dir%/spreadsheet/bitmap"') |
|
34 | 2 | ->cannotBeEmpty() |
|
35 | 2 | ->info('Using a bitmap cache is necessary, PhpSpreadsheet supports only local files.') |
|
36 | 2 | ->end() |
|
37 | 2 | ->scalarNode('xml') |
|
38 | 2 | ->defaultFalse() |
|
39 | 2 | ->example('"%kernel.cache_dir%/spreadsheet/xml"') |
|
40 | 2 | ->info('Using XML caching can improve memory consumption by writing data to disk. Works only for .xlsx and .ods documents.') |
|
41 | 2 | ->end() |
|
42 | 2 | ->end() |
|
43 | 2 | ->end() |
|
44 | 2 | ->end(); |
|
45 | |||
46 | 2 | return $treeBuilder; |
|
47 | } |
||
48 | } |
||
49 |