[FrameworkBundle] Do not pass the base uri twice to scoped http clients
This commit is contained in:
parent
7da56f31ba
commit
e2fce0d89f
@ -2009,9 +2009,12 @@ class FrameworkExtension extends Extension
|
||||
unset($scopeConfig['scope']);
|
||||
|
||||
if (null === $scope) {
|
||||
$baseUri = $scopeConfig['base_uri'];
|
||||
unset($scopeConfig['base_uri']);
|
||||
|
||||
$container->register($name, ScopingHttpClient::class)
|
||||
->setFactory([ScopingHttpClient::class, 'forBaseUri'])
|
||||
->setArguments([new Reference($httpClientId), $scopeConfig['base_uri'], $scopeConfig])
|
||||
->setArguments([new Reference($httpClientId), $baseUri, $scopeConfig])
|
||||
->addTag('http_client.client')
|
||||
;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user