Skip to content

Commit 8ae271b

Browse files
committed
HttpMethodClient: replace usage of deprecated PHP-HTTP MessageFactory with PSR-17 factories
1 parent 1b063a4 commit 8ae271b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
],
2727
"require": {
2828
"php": "^7.3 || ^8.0",
29-
"php-http/client-common": "^1.9 || ^2.0",
29+
"php-http/client-common": "^2.0",
3030
"php-http/client-implementation": "^1.0",
3131
"php-http/discovery": "^1.14",
3232
"php-http/httplug": "^2.0",

src/DependencyInjection/HttplugExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function ($id) {
486486
if ($arguments['http_methods_client']) {
487487
$container
488488
->register($serviceId.'.http_methods', HttpMethodsClient::class)
489-
->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')])
489+
->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.psr17_request_factory'), new Reference('httplug.psr17_stream_factory')])
490490
->setPublic($arguments['public'] ? true : false)
491491
->setDecoratedService($serviceId)
492492
;

0 commit comments

Comments
 (0)