Update Configuration.php

Updated to support any HTTP request header type in the "headers" section.
This commit is contained in:
rayrigam 2014-03-18 18:14:03 -04:30
parent 0116a6ac4f
commit de70e78b53

View file

@ -101,6 +101,7 @@ class Configuration implements ConfigurationInterface
->children() ->children()
->arrayNode('servers') ->arrayNode('servers')
->prototype('array') ->prototype('array')
->fixXmlConfig('header')
->children() ->children()
->scalarNode('url') ->scalarNode('url')
->validate() ->validate()
@ -116,9 +117,8 @@ class Configuration implements ConfigurationInterface
->treatTrueLike('fos_elastica.logger') ->treatTrueLike('fos_elastica.logger')
->end() ->end()
->arrayNode('headers') ->arrayNode('headers')
->children() ->useAttributeAsKey('name')
->scalarNode('Authorization')->end() ->prototype('scalar')->end()
->end()
->end() ->end()
->scalarNode('timeout')->end() ->scalarNode('timeout')->end()
->end() ->end()