| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function getConfigTreeBuilder(): TreeBuilder |
||
| 13 | { |
||
| 14 | $treeBuilder = new TreeBuilder('damax_services_client'); |
||
| 15 | |||
| 16 | $rootNode = $treeBuilder->getRootNode(); |
||
| 17 | $rootNode |
||
| 18 | ->children() |
||
| 19 | ->scalarNode('api_key')->isRequired()->end() |
||
| 20 | ->scalarNode('endpoint') |
||
| 21 | ->cannotBeEmpty() |
||
| 22 | ->defaultValue('https://api.damax.solutions/services') |
||
| 23 | ->end() |
||
| 24 | ->end() |
||
| 25 | ; |
||
| 26 | |||
| 27 | return $treeBuilder; |
||
| 28 | } |
||
| 30 |