| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 23 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 2 | public function getConfigTreeBuilder() |
|
| 19 | { |
||
| 20 | 2 | $treeBuilder = new TreeBuilder('cas'); |
|
| 21 | |||
| 22 | /** @var \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode */ |
||
| 23 | 2 | $rootNode = $treeBuilder->getRootNode(); |
|
| 24 | |||
| 25 | $rootNode |
||
| 26 | 2 | ->children() |
|
| 27 | 2 | ->scalarNode('base_url')->defaultValue('')->end() |
|
| 28 | 2 | ->arrayNode('protocol') |
|
|
|
|||
| 29 | 2 | ->useAttributeAsKey('name') |
|
| 30 | 2 | ->arrayPrototype() |
|
| 31 | 2 | ->children() |
|
| 32 | 2 | ->scalarNode('path') |
|
| 33 | 2 | ->isRequired() |
|
| 34 | 2 | ->cannotBeEmpty() |
|
| 35 | 2 | ->end() |
|
| 36 | 2 | ->arrayNode('allowed_parameters') |
|
| 37 | 2 | ->defaultValue([]) |
|
| 38 | 2 | ->scalarPrototype()->end() |
|
| 39 | 2 | ->end() |
|
| 40 | 2 | ->arrayNode('default_parameters') |
|
| 41 | 2 | ->defaultValue([]) |
|
| 42 | 2 | ->scalarPrototype()->end() |
|
| 43 | 2 | ->end() |
|
| 44 | 2 | ->end(); |
|
| 45 | |||
| 46 | 2 | return $treeBuilder; |
|
| 47 | } |
||
| 49 |