Skip to content

Commit 7d046f4

Browse files
committed
do psr17 discovery
1 parent 39f8463 commit 7d046f4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"php-http/discovery": "^1.0",
2222
"php-http/httplug": "^2.0",
2323
"psr/http-client": "^1.0",
24-
"psr/http-factory": "^1.0",
24+
"psr/http-factory-implementation": "^1.0",
2525
"psr/http-message": "^1.0 || ^2.0",
2626
"symfony/polyfill-php80": "^1.17"
2727
},
@@ -36,7 +36,7 @@
3636
"config": {
3737
"sort-packages": true,
3838
"allow-plugins": {
39-
"php-http/discovery": false
39+
"php-http/discovery": true
4040
}
4141
},
4242
"autoload": {

src/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Http\Client\HttpAsyncClient;
88
use Http\Client\HttpClient;
99
use Http\Discovery\MessageFactoryDiscovery;
10+
use Http\Discovery\Psr17FactoryDiscovery;
1011
use Http\Message\RequestMatcher;
1112
use Http\Message\ResponseFactory;
1213
use Psr\Http\Client\ClientExceptionInterface;
@@ -72,7 +73,7 @@ public function __construct($responseFactory = null)
7273
);
7374
}
7475

75-
$this->responseFactory = $responseFactory ?: MessageFactoryDiscovery::find();
76+
$this->responseFactory = $responseFactory ?: Psr17FactoryDiscovery::findResponseFactory();
7677
}
7778

7879
/**

0 commit comments

Comments
 (0)