Created
March 12, 2019 14:20
-
-
Save xabbuh/598f2d9735d081d567895fa657de2067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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