Conditions | 1 |
Paths | 1 |
Total Lines | 36 |
Code Lines | 30 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function getConfigTreeBuilder() |
||
28 | { |
||
29 | $treeBuilder = new TreeBuilder(); |
||
30 | $rootNode = $treeBuilder->root('mediapart_la_presse_libre'); |
||
31 | |||
32 | $rootNode |
||
33 | ->children() |
||
34 | ->scalarNode('public_key') |
||
35 | ->defaultValue('%lapresselibre_publickey%') |
||
36 | ->cannotBeEmpty() |
||
37 | ->end() |
||
38 | ->scalarNode('secret_key') |
||
39 | ->defaultValue('%lapresselibre_secretkey%') |
||
40 | ->cannotBeEmpty() |
||
41 | ->end() |
||
42 | ->scalarNode('aes_password') |
||
43 | ->defaultValue('%lapresselibre_aespassword%') |
||
44 | ->cannotBeEmpty() |
||
45 | ->end() |
||
46 | ->scalarNode('aes_iv') |
||
47 | ->defaultValue('%lapresselibre_aesiv%') |
||
48 | ->end() |
||
49 | ->scalarNode('aes_options') |
||
50 | ->defaultValue(OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING) |
||
51 | ->end() |
||
52 | ->arrayNode('account') |
||
53 | ->children() |
||
54 | ->scalarNode('repository')->end() |
||
55 | ->scalarNode('provider')->end() |
||
56 | ->end() |
||
57 | ->end() |
||
58 | |||
59 | ->end() |
||
60 | ; |
||
61 | |||
62 | return $treeBuilder; |
||
63 | } |
||
65 |