Skip to content

Commit eb27ff3

Browse files
Prefer php-http/discovery over nyholm/psr7 when installed (#1198)
1 parent bdf9c6c commit eb27ff3

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

nyholm/psr7/1.0/manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"copy-from-recipe": {
33
"config/": "%CONFIG_DIR%/"
4+
},
5+
"conflict": {
6+
"php-http/discovery": ">=1.18"
47
}
58
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
Psr\Http\Message\RequestFactoryInterface: '@http_discovery.psr17_factory'
3+
Psr\Http\Message\ResponseFactoryInterface: '@http_discovery.psr17_factory'
4+
Psr\Http\Message\ServerRequestFactoryInterface: '@http_discovery.psr17_factory'
5+
Psr\Http\Message\StreamFactoryInterface: '@http_discovery.psr17_factory'
6+
Psr\Http\Message\UploadedFileFactoryInterface: '@http_discovery.psr17_factory'
7+
Psr\Http\Message\UriFactoryInterface: '@http_discovery.psr17_factory'
8+
9+
http_discovery.psr17_factory:
10+
class: Http\Discovery\Psr17Factory

php-http/discovery/1.18/manifest.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
}
5+
}

0 commit comments

Comments
 (0)