|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Cdf\BiCoreBundle\DependencyInjection; |
|
4
|
|
|
|
|
5
|
|
|
use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
6
|
|
|
use Symfony\Component\Config\Definition\ConfigurationInterface; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* This is the class that validates and merges configuration from your app/config files. |
|
10
|
|
|
* |
|
11
|
|
|
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} |
|
12
|
|
|
*/ |
|
13
|
|
|
class Configuration implements ConfigurationInterface |
|
14
|
|
|
{ |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* {@inheritdoc} |
|
18
|
|
|
*/ |
|
19
|
2 |
|
public function getConfigTreeBuilder(): TreeBuilder |
|
20
|
|
|
{ |
|
21
|
2 |
|
$treeBuilder = new TreeBuilder('bi_core'); |
|
22
|
2 |
|
$rootnode = $treeBuilder->getRootNode(); |
|
23
|
|
|
/** @phpstan-ignore-next-line */ |
|
24
|
2 |
|
$rootnode->children() |
|
25
|
2 |
|
->scalarNode('lockfile')->defaultValue('%kernel.cache_dir%/maintenance.lock')->end() |
|
26
|
2 |
|
->scalarNode('appname')->defaultValue('BiCoreBundle')->end() |
|
27
|
2 |
|
->scalarNode('appid')->defaultValue('999')->end() |
|
28
|
2 |
|
->scalarNode('table_prefix')->defaultValue('__bicorebundle_')->end() |
|
29
|
2 |
|
->scalarNode('table_schema')->defaultValue('')->end() |
|
30
|
2 |
|
->scalarNode('oauth2_enabled')->defaultValue('0')->end() |
|
31
|
2 |
|
->scalarNode('oauth2_clientkey')->defaultValue('')->end() |
|
32
|
2 |
|
->scalarNode('oauth2_endpoint')->defaultValue('')->end() |
|
33
|
2 |
|
->scalarNode('admin4test')->defaultValue('admin')->end() |
|
34
|
2 |
|
->scalarNode('adminpwd4test')->defaultValue('admin')->end() |
|
35
|
2 |
|
->scalarNode('usernoroles4test')->defaultValue('usernoroles')->end() |
|
36
|
2 |
|
->scalarNode('usernorolespwd4test')->defaultValue('usernoroles')->end() |
|
37
|
2 |
|
->scalarNode('userreadroles4test')->defaultValue('userreadroles')->end() |
|
38
|
2 |
|
->scalarNode('userreadrolespwd4test')->defaultValue('userreadroles')->end() |
|
39
|
2 |
|
->scalarNode('api_inflector_exceptions')->defaultValue('')->end() |
|
40
|
2 |
|
->booleanNode('solosso')->defaultFalse()->end() |
|
41
|
2 |
|
->end(); |
|
42
|
|
|
|
|
43
|
2 |
|
return $treeBuilder; |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|