Skip to content

Commit 33bb058

Browse files
committed
[FrameworkBundle] Do not pass the base uri twice to scoped http clients
1 parent 166b795 commit 33bb058

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,9 +2009,12 @@ private function registerHttpClientConfiguration(array $config, ContainerBuilder
20092009
unset($scopeConfig['scope']);
20102010

20112011
if (null === $scope) {
2012+
$baseUri = $scopeConfig['base_uri'];
2013+
unset($scopeConfig['base_uri']);
2014+
20122015
$container->register($name, ScopingHttpClient::class)
20132016
->setFactory([ScopingHttpClient::class, 'forBaseUri'])
2014-
->setArguments([new Reference($httpClientId), $scopeConfig['base_uri'], $scopeConfig])
2017+
->setArguments([new Reference($httpClientId), $baseUri, $scopeConfig])
20152018
->addTag('http_client.client')
20162019
;
20172020
} else {

0 commit comments

Comments
 (0)