8000 Review feedback · symfony/symfony@a7b11f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a7b11f8

Browse files
committed
Review feedback
1 parent a366f53 commit a7b11f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

UPGRADE-6.3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ FrameworkBundle
6060
HttpClient
6161
----------
6262

63-
* Deprecate the `Http\Client\HttpClient` service, use the `Http\Client\HttpAsyncClient` service for method `::sendAsyncRequest` and `psr18.http_client` for `::sendRequest` instead
63+
* Deprecate the `Http\Client\HttpClient` service, use the `Http\Client\HttpAsyncClient` service for method `::sendAsyncRequest` and `psr\Http\Client\ClientInterface` for `::sendRequest` instead
6464
* Deprecate `Symfony\Component\HttpClient\HttplugClient::sendRequest`, use `Psr\Http\Client\ClientInterface::sendRequest` instead
6565

6666
HttpFoundation

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ private function registerHttpClientConfiguration(array $config, ContainerBuilder
24322432
$container->setDefinition('httplug.'.$name, new ChildDefinition(HttpAsyncClient::class))
24332433
->replaceArgument(0, new Reference($name));
24342434

2435-
$container->registerAliasForArgument('httplug.'.$name, ClientInterface::class, $name);
2435+
$container->registerAliasForArgument('httplug.'.$name, HttpAsyncClient::class, $name);
24362436
}
24372437
}
24382438

src/Symfony/Bundle/FrameworkBundle/Resources/config/http_client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
->deprecate(
6262
'symfony/http-client',
6363
'6.3',
64-
'The "%alias_id%" service is deprecated, use the "'.HttpAsyncClient::class.'" service for method "::sendAsyncRequest" and "psr18.http_client" for "::sendRequest" instead',
64+
'The "%alias_id%" service is deprecated, use the "'.HttpAsyncClient::class.'" service for method "::sendAsyncRequest" and "'.ClientInterface::class.'" for "::sendRequest" instead',
6565
)
6666

6767
->set('http_client.abstract_retry_strategy', GenericRetryStrategy::class)

0 commit comments

Comments
 (0)
0