diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index f28c778..0d3c756 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -121,6 +121,13 @@ class Configuration implements ConfigurationInterface ->prototype('scalar')->end() ->end() ->end() + ->fixXmlConfig('setting') + ->children() + ->arrayNode('settings') + ->useAttributeAsKey('key') + ->prototype('scalar')->end() + ->end() + ->end() ->fixXmlConfig('connection') ->append($this->getDbalConnectionsNode()) ->end() @@ -152,26 +159,36 @@ class Configuration implements ConfigurationInterface ->useAttributeAsKey('name') ->prototype('array') ->children() - ->scalarNode('driver')->defaultValue('mysql')->end() - ->scalarNode('user')->defaultValue('root')->end() - ->scalarNode('password')->defaultValue('')->end() - ->scalarNode('dsn')->defaultValue('')->end() - ->scalarNode('classname')->defaultValue($this->debug ? 'DebugPDO' : 'PropelPDO')->end() - ->end() - ->fixXmlConfig('option') - ->children() - ->arrayNode('options') - ->useAttributeAsKey('key') - ->prototype('scalar')->end() + ->scalarNode('driver')->defaultValue('mysql')->end() + ->scalarNode('user')->defaultValue('root')->end() + ->scalarNode('password')->defaultValue('')->end() + ->scalarNode('dsn')->defaultValue('')->end() + ->scalarNode('classname')->defaultValue($this->debug ? 'DebugPDO' : 'PropelPDO')->end() ->end() - ->end() - ->fixXmlConfig('attribute') - ->children() - ->arrayNode('attributes') - ->useAttributeAsKey('key') - ->prototype('scalar')->end() + ->fixXmlConfig('option') + ->children() + ->arrayNode('options') + ->useAttributeAsKey('key') + ->prototype('scalar')->end() + ->end() + ->end() + ->fixXmlConfig('attribute') + ->children() + ->arrayNode('attributes') + ->useAttributeAsKey('key') + ->prototype('scalar')->end() + ->end() + ->end() + ->fixXmlConfig('setting') + ->children() + ->arrayNode('settings') + ->useAttributeAsKey('key') + ->prototype('array') + ->useAttributeAsKey('key') + ->prototype('scalar') + ->end() + ->end() ->end() - ->end() ; return $node;