[Contracts] Simplify implementation declarations

This commit is contained in:
Nicolas Grekas 2019-05-09 09:39:53 +02:00
parent 3fc97ce1c5
commit 7d51da36a7
5 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@
"provide": {
"psr/cache-implementation": "1.0",
"psr/simple-cache-implementation": "1.0",
"symfony/cache-contracts-implementation": "1.0"
"symfony/cache-implementation": "1.0"
},
"require": {
"php": "^7.1.3",

View File

@ -40,7 +40,7 @@
},
"provide": {
"psr/container-implementation": "1.0",
"symfony/service-contracts-implementation": "1.0"
"symfony/service-implementation": "1.0"
},
"autoload": {
"psr-4": { "Symfony\\Component\\DependencyInjection\\": "" },

View File

@ -37,7 +37,7 @@
"symfony/yaml": "<3.4"
},
"provide": {
"symfony/translation-contracts-implementation": "1.0"
"symfony/translation-implementation": "1.0"
},
"suggest": {
"symfony/config": "",

View File

@ -16,8 +16,8 @@ Design Principles
* they must be backward compatible with existing Symfony components.
Packages that implement specific contracts should list them in the "provide"
section of their "composer.json" file, using the `symfony/*-contracts-implementation`
convention (e.g. `"provide": { "symfony/cache-contracts-implementation": "1.0" }`).
section of their "composer.json" file, using the `symfony/*-implementation`
convention (e.g. `"provide": { "symfony/cache-implementation": "1.0" }`).
FAQ
---

View File

@ -25,9 +25,9 @@
"suggest": {
"psr/cache": "When using the Cache contracts",
"psr/container": "When using the Service contracts",
"symfony/cache-contracts-implementation": "",
"symfony/service-contracts-implementation": "",
"symfony/translation-contracts-implementation": ""
"symfony/cache-implementation": "",
"symfony/service-implementation": "",
"symfony/translation-implementation": ""
},
"autoload": {
"psr-4": { "Symfony\\Contracts\\": "" },