mirror of
https://github.com/symfony/recipes.git
synced 2026-03-23 23:32:10 +01:00
Prefer php-http/discovery over nyholm/psr7 when installed (#1198)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"conflict": {
|
||||
"php-http/discovery": ">=1.18"
|
||||
}
|
||||
}
|
||||
|
||||
10
php-http/discovery/1.18/config/packages/http_discovery.yaml
Normal file
10
php-http/discovery/1.18/config/packages/http_discovery.yaml
Normal 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
|
||||
5
php-http/discovery/1.18/manifest.json
Normal file
5
php-http/discovery/1.18/manifest.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user