minor #31440 [Contracts] Simplify implementation declarations (nicolas-grekas)
This PR was merged into the 4.2 branch.
Discussion
----------
[Contracts] Simplify implementation declarations
| Q | A
| ------------- | ---
| Branch? | 4.2
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Nobody but us references these for now so we let's make them simpler asap.
Commits
-------
7d51da36a7
[Contracts] Simplify implementation declarations
This commit is contained in:
commit
7de0f01e6c
@ -18,7 +18,7 @@
|
|||||||
"provide": {
|
"provide": {
|
||||||
"psr/cache-implementation": "1.0",
|
"psr/cache-implementation": "1.0",
|
||||||
"psr/simple-cache-implementation": "1.0",
|
"psr/simple-cache-implementation": "1.0",
|
||||||
"symfony/cache-contracts-implementation": "1.0"
|
"symfony/cache-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.1.3",
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"psr/container-implementation": "1.0",
|
"psr/container-implementation": "1.0",
|
||||||
"symfony/service-contracts-implementation": "1.0"
|
"symfony/service-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": { "Symfony\\Component\\DependencyInjection\\": "" },
|
"psr-4": { "Symfony\\Component\\DependencyInjection\\": "" },
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
"symfony/yaml": "<3.4"
|
"symfony/yaml": "<3.4"
|
||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"symfony/translation-contracts-implementation": "1.0"
|
"symfony/translation-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"symfony/config": "",
|
"symfony/config": "",
|
||||||
|
@ -16,8 +16,8 @@ Design Principles
|
|||||||
* they must be backward compatible with existing Symfony components.
|
* they must be backward compatible with existing Symfony components.
|
||||||
|
|
||||||
Packages that implement specific contracts should list them in the "provide"
|
Packages that implement specific contracts should list them in the "provide"
|
||||||
section of their "composer.json" file, using the `symfony/*-contracts-implementation`
|
section of their "composer.json" file, using the `symfony/*-implementation`
|
||||||
convention (e.g. `"provide": { "symfony/cache-contracts-implementation": "1.0" }`).
|
convention (e.g. `"provide": { "symfony/cache-implementation": "1.0" }`).
|
||||||
|
|
||||||
FAQ
|
FAQ
|
||||||
---
|
---
|
||||||
|
@ -25,9 +25,9 @@
|
|||||||
"suggest": {
|
"suggest": {
|
||||||
"psr/cache": "When using the Cache contracts",
|
"psr/cache": "When using the Cache contracts",
|
||||||
"psr/container": "When using the Service contracts",
|
"psr/container": "When using the Service contracts",
|
||||||
"symfony/cache-contracts-implementation": "",
|
"symfony/cache-implementation": "",
|
||||||
"symfony/service-contracts-implementation": "",
|
"symfony/service-implementation": "",
|
||||||
"symfony/translation-contracts-implementation": ""
|
"symfony/translation-implementation": ""
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": { "Symfony\\Contracts\\": "" },
|
"psr-4": { "Symfony\\Contracts\\": "" },
|
||||||
|
Reference in New Issue
Block a user