File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 21
21
"php-http/discovery" : " ^1.0" ,
22
22
"php-http/httplug" : " ^2.0" ,
23
23
"psr/http-client" : " ^1.0" ,
24
- "psr/http-factory" : " ^1.0" ,
24
+ "psr/http-factory-implementation " : " ^1.0" ,
25
25
"psr/http-message" : " ^1.0 || ^2.0" ,
26
26
"symfony/polyfill-php80" : " ^1.17"
27
27
},
36
36
"config" : {
37
37
"sort-packages" : true ,
38
38
"allow-plugins" : {
39
- "php-http/discovery" : false
39
+ "php-http/discovery" : true
40
40
}
41
41
},
42
42
"autoload" : {
Original file line number Diff line number Diff line change 7
7
use Http \Client \HttpAsyncClient ;
8
8
use Http \Client \HttpClient ;
9
9
use Http \Discovery \MessageFactoryDiscovery ;
10
+ use Http \Discovery \Psr17FactoryDiscovery ;
10
11
use Http \Message \RequestMatcher ;
11
12
use Http \Message \ResponseFactory ;
12
13
use Psr \Http \Client \ClientExceptionInterface ;
@@ -72,7 +73,7 @@ public function __construct($responseFactory = null)
72
73
);
73
74
}
74
75
75
- $ this ->responseFactory = $ responseFactory ?: MessageFactoryDiscovery:: find ();
76
+ $ this ->responseFactory = $ responseFactory ?: Psr17FactoryDiscovery:: findResponseFactory ();
76
77
}
77
78
78
79
/**
You can’t perform that action at this time.
0 commit comments