Conditions | 1 |
Paths | 1 |
Total Lines | 39 |
Code Lines | 27 |
Lines | 0 |
Ratio | 0 % |
Changes | 14 | ||
Bugs | 0 | Features | 3 |
1 | <?php |
||
13 | public function getConfigTreeBuilder() |
||
14 | { |
||
15 | $treeBuilder = new TreeBuilder(); |
||
16 | |||
17 | $this->setDefaults($node = $treeBuilder->root('dos_user'), array( |
||
18 | 'resources' => array( |
||
19 | 'otp' => array( |
||
20 | 'classes' => array( |
||
21 | 'model' => 'DoS\UserBundle\Model\OneTimePassword', |
||
22 | 'interface' => 'DoS\UserBundle\Model\OneTimePasswordInterface', |
||
23 | ), |
||
24 | 'validation_groups' => array( |
||
25 | 'default' => array('dos'), |
||
26 | ), |
||
27 | ), |
||
28 | ), |
||
29 | )); |
||
30 | |||
31 | $node |
||
32 | ->children() |
||
33 | ->arrayNode('confirmation') |
||
34 | ->addDefaultsIfNotSet() |
||
35 | ->children() |
||
36 | ->scalarNode('actived') |
||
37 | ->defaultNull() |
||
38 | ->cannotBeEmpty() |
||
39 | ->end() |
||
40 | |||
41 | ->arrayNode('types') |
||
42 | ->useAttributeAsKey('name') |
||
43 | ->prototype('variable') |
||
44 | ->end() |
||
45 | ->end() |
||
46 | ->end() |
||
47 | ->end() |
||
48 | ; |
||
49 | |||
50 | return $treeBuilder; |
||
51 | } |
||
52 | } |
||
53 |