| Conditions | 1 |
| Paths | 1 |
| Total Lines | 32 |
| Code Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | $rootNode = $treeBuilder->root('psi_description'); |
||
| 22 | $rootNode->addDefaultsIfNotSet(); |
||
| 23 | $rootNode->children() |
||
| 24 | ->arrayNode('enhancers') |
||
| 25 | ->info('Enabled description enhancers') |
||
| 26 | ->prototype('scalar')->end() |
||
| 27 | ->end() |
||
| 28 | ->arrayNode('subject_resolvers') |
||
| 29 | ->info('Enabled subject resolvers') |
||
| 30 | ->prototype('scalar')->end() |
||
| 31 | ->end() |
||
| 32 | ->arrayNode('schema') |
||
| 33 | ->addDefaultsIfNotSet() |
||
| 34 | ->children() |
||
| 35 | ->booleanNode('enabled') |
||
| 36 | ->info('Enable schema to validate the description. (Can be disabled in prod environment)') |
||
| 37 | ->defaultValue(true) |
||
| 38 | ->end() |
||
| 39 | ->arrayNode('extensions') |
||
| 40 | ->info('Enabled schema extensions') |
||
| 41 | ->defaultValue(['std']) |
||
| 42 | ->prototype('scalar')->end() |
||
| 43 | ->end() |
||
| 44 | ->end() |
||
| 45 | ->end(); |
||
| 46 | |||
| 47 | |||
| 48 | return $treeBuilder; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |