| Conditions | 1 |
| Paths | 1 |
| Total Lines | 37 |
| Code Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 13 | ||
| 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 | 'classes' => array( |
||
| 19 | 'otp' => array( |
||
| 20 | 'model' => 'DoS\UserBundle\Model\OneTimePassword', |
||
| 21 | 'interface' => 'DoS\UserBundle\Model\OneTimePasswordInterface', |
||
| 22 | ), |
||
| 23 | ), |
||
| 24 | 'validation_groups' => array( |
||
| 25 | 'otp' => array('dos'), |
||
| 26 | ), |
||
| 27 | )); |
||
| 28 | |||
| 29 | $node |
||
| 30 | ->children() |
||
| 31 | ->arrayNode('confirmation') |
||
| 32 | ->addDefaultsIfNotSet() |
||
| 33 | ->children() |
||
| 34 | ->scalarNode('actived') |
||
| 35 | ->defaultNull() |
||
| 36 | ->cannotBeEmpty() |
||
| 37 | ->end() |
||
| 38 | |||
| 39 | ->arrayNode('types') |
||
| 40 | ->useAttributeAsKey('name') |
||
| 41 | ->prototype('variable') |
||
| 42 | ->end() |
||
| 43 | ->end() |
||
| 44 | ->end() |
||
| 45 | ->end() |
||
| 46 | ; |
||
| 47 | |||
| 48 | return $treeBuilder; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |