Skip to content

Instantly share code, notes, and snippets.

@xabbuh
Created March 12, 2019 13:31
Show Gist options
  • Save xabbuh/f2ffbd7614412a27e25453637bf6ed1d to your computer and use it in GitHub Desktop.
Save xabbuh/f2ffbd7614412a27e25453637bf6ed1d to your computer and use it in GitHub Desktop.
private function addHttpClientSection(ArrayNodeDefinition $rootNode)
{
$subNode = $rootNode
->children()
->arrayNode('http_client')
->info('HTTP Client configuration')
->canBeEnabled()
->fixXmlConfig('client')
->children();
$this->addHttpClientOptionsSection($subNode);
$subNode = $subNode
->arrayNode('clients')
->useAttributeAsKey('name')
->normalizeKeys(false)
->arrayPrototype()
->children();
$this->addHttpClientOptionsSection($subNode);
$subNode
->end()
->end()
->end()
->end()
->end()
->end()
;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment