diff -r c288952a089f -r 81962874e172 DependencyInjection/Configuration.php --- a/DependencyInjection/Configuration.php Tue Oct 25 12:20:47 2011 +0200 +++ b/DependencyInjection/Configuration.php Thu Oct 27 05:51:04 2011 +0200 @@ -19,11 +19,33 @@ { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('wiki_tag'); - - // 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('document_class')->end() + ->scalarNode('document_id_column')->defaultValue('id')->end() + ->end() + ->fixXmlConfig('field') + ->children() + ->arrayNode('fields') + ->treatNullLike(array()) + ->useAttributeAsKey('name') + ->prototype('array') + ->performNoDeepMerging() + ->children() + ->scalarNode('type')->defaultValue('text')->end() + ->scalarNode('length') + ->beforeNormalization() + ->ifString() + ->then(function($v) { return intval($v); }) + ->end() + ->end() + ->scalarNode('accessor')->end() + ->end() + ->end() + ->end() + ->end(); + return $treeBuilder; } }