Conditions | 1 |
Paths | 1 |
Total Lines | 38 |
Code Lines | 30 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('mukhin_privatbank'); |
||
22 | $rootNode |
||
23 | ->fixXmlConfig('merchant') |
||
24 | ->children() |
||
25 | ->arrayNode('merchants') |
||
26 | ->useAttributeAsKey('name') |
||
27 | ->prototype('array') |
||
28 | ->children() |
||
29 | ->scalarNode('merchant_id') |
||
30 | ->info('Merchant ID') |
||
31 | ->isRequired() |
||
32 | ->cannotBeEmpty() |
||
33 | ->end() |
||
34 | ->scalarNode('merchant_secret') |
||
35 | ->info('Merchant Secret') |
||
36 | ->isRequired() |
||
37 | ->cannotBeEmpty() |
||
38 | ->end() |
||
39 | ->scalarNode('card_number') |
||
40 | ->info('Card number associated with given Merchant') |
||
41 | ->isRequired() |
||
42 | ->cannotBeEmpty() |
||
43 | ->end() |
||
44 | ->end() |
||
45 | ->end() |
||
46 | ->end() |
||
47 | ->end() |
||
48 | ; |
||
49 | |||
50 | // Here you should define the parameters that are allowed to |
||
51 | // configure your bundle. See the documentation linked above for |
||
52 | // more information on that topic. |
||
53 | |||
54 | return $treeBuilder; |
||
55 | } |
||
56 | } |
||
57 |