| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getConfigTreeBuilder() |
||
| 23 | { |
||
| 24 | $treeBuilder = new TreeBuilder(); |
||
| 25 | $rootNode = $treeBuilder->root('u2f'); |
||
| 26 | |||
| 27 | $rootNode |
||
| 28 | ->addDefaultsIfNotSet() |
||
|
|
|||
| 29 | ->children() |
||
| 30 | ->scalarNode('application_id') |
||
| 31 | ->info('The application ID') |
||
| 32 | ->isRequired() |
||
| 33 | ->end() |
||
| 34 | ->arrayNode('issuer_certificates') |
||
| 35 | ->info('List of paths to certificate files. If set, the registered keys must have been manufactured by the issuer of the certificates') |
||
| 36 | ->treatNullLike([]) |
||
| 37 | ->treatFalseLike([]) |
||
| 38 | ->scalarPrototype()->end() |
||
| 39 | ->end() |
||
| 40 | ->end(); |
||
| 41 | |||
| 42 | return $treeBuilder; |
||
| 43 | } |
||
| 45 |