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