Skip to content

Instantly share code, notes, and snippets.

@xabbuh
Created March 12, 2019 14:20
Show Gist options
  • Save xabbuh/598f2d9735d081d567895fa657de2067 to your computer and use it in GitHub Desktop.
Save xabbuh/598f2d9735d081d567895fa657de2067 to your computer and use it in GitHub Desktop.
private function addHttpClientOptionsSection(NodeBuilder $rootNode): NodeBuilder
{
return $rootNode
->integerNode('max_host_connections')
->info('The maximum number of connections to a single host.')
->defaultValue(6)
->end()
->arrayNode('default_options')
->children()
->fixXmlConfig('header')
// ...
->arrayNode('headers')
->info('Associative array: header => value(s).')
->useAttributeAsKey('name')
->normalizeKeys(false)
->variablePrototype()->end()
->end()
// ...
->end()
->end()
;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment