automatic configuration for the bundle

This commit is contained in:
2014-09-22 23:27:04 +02:00
parent 4b689031d2
commit e9925a6dd7
3 changed files with 36 additions and 23 deletions

View File

@@ -20,9 +20,13 @@ class Configuration implements ConfigurationInterface
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('cl_chill_main');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
$rootNode
->children()
->scalarNode('installation_name')
->cannotBeEmpty()
->defaultValue('Chill')
->end()
->end();
return $treeBuilder;
}