-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathConfiguration.php
More file actions
57 lines (52 loc) · 2.14 KB
/
Configuration.php
File metadata and controls
57 lines (52 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace Symfony\Cmf\Bundle\CreateBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('symfony_cmf_create');
$rootNode
->children()
->scalarNode('rest_controller_class')->defaultFalse()->end()
->arrayNode('map')
->useAttributeAsKey('name')
->prototype('scalar')->end()
->end()
->scalarNode('role')->defaultValue('IS_AUTHENTICATED_ANONYMOUSLY')->end()
->arrayNode('image')
->canBeUnset()
->children()
->scalarNode('model_class')->cannotBeEmpty()->end()
->scalarNode('controller_class')->cannotBeEmpty()->end()
->end()
->end()
->scalarNode('phpcr_odm')->defaultFalse()->end()
->scalarNode('stanbol_url')->defaultValue('http://dev.iks-project.eu:8081')->end()
->scalarNode('use_coffee')->defaultFalse()->end()
->scalarNode('fixed_toolbar')->defaultTrue()->end()
->arrayNode('plain_text_types')
->useAttributeAsKey('name')
->prototype('scalar')->end()
->end()
->scalarNode('create_routes')->defaultFalse()->end()
->arrayNode('rdf_config_dirs')
->useAttributeAsKey('dir')
->prototype('scalar')->end()
->end()
->scalarNode('auto_mapping')->defaultTrue()->end()
->end()
;
return $treeBuilder;
}
}