Prefer php-http/discovery over nyholm/psr7 when installed (#1198)

This commit is contained in:
Nicolas Grekas
2023-05-06 18:42:28 +02:00
committed by GitHub
parent bdf9c6cb59
commit eb27ff3702
3 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
{ {
"copy-from-recipe": { "copy-from-recipe": {
"config/": "%CONFIG_DIR%/" "config/": "%CONFIG_DIR%/"
},
"conflict": {
"php-http/discovery": ">=1.18"
} }
} }

View File

@@ -0,0 +1,10 @@
services:
Psr\Http\Message\RequestFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\ResponseFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\ServerRequestFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\StreamFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\UploadedFileFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\UriFactoryInterface: '@http_discovery.psr17_factory'
http_discovery.psr17_factory:
class: Http\Discovery\Psr17Factory

View File

@@ -0,0 +1,5 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}