Created
March 12, 2019 13:31
-
-
Save xabbuh/f2ffbd7614412a27e25453637bf6ed1d 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 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