| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function getConfigTreeBuilder(): TreeBuilder |
||
| 21 | { |
||
| 22 | $treeBuilder = new TreeBuilder('video_games_records_igdb'); |
||
| 23 | $rootNode = $treeBuilder->getRootNode(); |
||
| 24 | |||
| 25 | $rootNode |
||
| 26 | ->children() |
||
| 27 | ->scalarNode('client_id') |
||
| 28 | ->isRequired() |
||
| 29 | ->cannotBeEmpty() |
||
| 30 | ->info('IGDB API client ID') |
||
| 31 | ->end() |
||
| 32 | ->scalarNode('client_secret') |
||
|
|
|||
| 33 | ->isRequired() |
||
| 34 | ->cannotBeEmpty() |
||
| 35 | ->info('IGDB API client secret') |
||
| 36 | ->end() |
||
| 37 | ->end(); |
||
| 38 | |||
| 39 | return $treeBuilder; |
||
| 40 | } |
||
| 42 |