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()
|
||||
->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()
|
||||
|
|
Loading…
Reference in a new issue