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