Update Configuration.php
Updated to support any HTTP request header type in the "headers" section.
This commit is contained in:
parent
0116a6ac4f
commit
de70e78b53
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue