[Contracts] split in one package per sub-contracts
This commit is contained in:
parent
987e1cf525
commit
f410691842
19
src/Symfony/Contracts/Cache/LICENSE
Normal file
19
src/Symfony/Contracts/Cache/LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2018-2019 Fabien Potencier
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
9
src/Symfony/Contracts/Cache/README.md
Normal file
9
src/Symfony/Contracts/Cache/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Symfony Cache Contracts
|
||||||
|
=======================
|
||||||
|
|
||||||
|
A set of abstractions extracted out of the Symfony components.
|
||||||
|
|
||||||
|
Can be used to build on semantics that the Symfony components proved useful - and
|
||||||
|
that already have battle tested implementations.
|
||||||
|
|
||||||
|
See https://github.com/symfony/contracts/blob/master/README.md for more information.
|
34
src/Symfony/Contracts/Cache/composer.json
Normal file
34
src/Symfony/Contracts/Cache/composer.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "symfony/cache-contracts",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Generic abstractions related to caching",
|
||||||
|
"keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"],
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"psr/cache": "",
|
||||||
|
"symfony/cache-implementation": ""
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": { "Symfony\\Contracts\\Cache\\": "" }
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.1-dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
src/Symfony/Contracts/EventDispatcher/LICENSE
Normal file
19
src/Symfony/Contracts/EventDispatcher/LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2018-2019 Fabien Potencier
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
9
src/Symfony/Contracts/EventDispatcher/README.md
Normal file
9
src/Symfony/Contracts/EventDispatcher/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Symfony EventDispatcher Contracts
|
||||||
|
=================================
|
||||||
|
|
||||||
|
A set of abstractions extracted out of the Symfony components.
|
||||||
|
|
||||||
|
Can be used to build on semantics that the Symfony components proved useful - and
|
||||||
|
that already have battle tested implementations.
|
||||||
|
|
||||||
|
See https://github.com/symfony/contracts/blob/master/README.md for more information.
|
34
src/Symfony/Contracts/EventDispatcher/composer.json
Normal file
34
src/Symfony/Contracts/EventDispatcher/composer.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "symfony/event-dispatcher-contracts",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Generic abstractions related to dispatching event",
|
||||||
|
"keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"],
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"psr/event-dispatcher": "",
|
||||||
|
"symfony/event-dispatcher-implementation": ""
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": { "Symfony\\Contracts\\EventDispatcher\\": "" }
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.1-dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
src/Symfony/Contracts/HttpClient/LICENSE
Normal file
19
src/Symfony/Contracts/HttpClient/LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2018-2019 Fabien Potencier
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
9
src/Symfony/Contracts/HttpClient/README.md
Normal file
9
src/Symfony/Contracts/HttpClient/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Symfony HttpClient Contracts
|
||||||
|
============================
|
||||||
|
|
||||||
|
A set of abstractions extracted out of the Symfony components.
|
||||||
|
|
||||||
|
Can be used to build on semantics that the Symfony components proved useful - and
|
||||||
|
that already have battle tested implementations.
|
||||||
|
|
||||||
|
See https://github.com/symfony/contracts/blob/master/README.md for more information.
|
33
src/Symfony/Contracts/HttpClient/composer.json
Normal file
33
src/Symfony/Contracts/HttpClient/composer.json
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"name": "symfony/http-client-contracts",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Generic abstractions related to HTTP clients",
|
||||||
|
"keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"],
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"symfony/http-client-implementation": ""
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": { "Symfony\\Contracts\\HttpClient\\": "" }
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.1-dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -44,22 +44,6 @@ providing abstractions that are useful on their own while still compatible with
|
|||||||
implementations provided by Symfony. Although not the main target, we hope that
|
implementations provided by Symfony. Although not the main target, we hope that
|
||||||
the declared contracts will directly or indirectly contribute to the PHP-FIG.
|
the declared contracts will directly or indirectly contribute to the PHP-FIG.
|
||||||
|
|
||||||
### Why isn't this package split into several packages?
|
|
||||||
|
|
||||||
Putting all interfaces in one package eases discoverability and dependency
|
|
||||||
management. Instead of dealing with a myriad of small packages and the
|
|
||||||
corresponding matrix of versions, you just need to deal with one package and one
|
|
||||||
version. Also when using IDE autocompletion or just reading the source code, it
|
|
||||||
makes it easier to figure out which contracts are provided.
|
|
||||||
|
|
||||||
There are two downsides to this approach: you may have unused files in your
|
|
||||||
`vendor/` directory, and in the future, it will be impossible to use two
|
|
||||||
different sub-namespaces in different major versions of the package. For the
|
|
||||||
"unused files" downside, it has no practical consequences: their file sizes are
|
|
||||||
very small, and there is no performance overhead at all since they are never
|
|
||||||
loaded. For major versions, this package follows the Symfony BC + deprecation
|
|
||||||
policies, with an additional restriction to never remove deprecated interfaces.
|
|
||||||
|
|
||||||
Resources
|
Resources
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
19
src/Symfony/Contracts/Service/LICENSE
Normal file
19
src/Symfony/Contracts/Service/LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2018-2019 Fabien Potencier
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
9
src/Symfony/Contracts/Service/README.md
Normal file
9
src/Symfony/Contracts/Service/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Symfony Service Contracts
|
||||||
|
=========================
|
||||||
|
|
||||||
|
A set of abstractions extracted out of the Symfony components.
|
||||||
|
|
||||||
|
Can be used to build on semantics that the Symfony components proved useful - and
|
||||||
|
that already have battle tested implementations.
|
||||||
|
|
||||||
|
See https://github.com/symfony/contracts/blob/master/README.md for more information.
|
34
src/Symfony/Contracts/Service/composer.json
Normal file
34
src/Symfony/Contracts/Service/composer.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "symfony/service-contracts",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Generic abstractions related to writting services",
|
||||||
|
"keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"],
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"psr/container": "",
|
||||||
|
"symfony/service-implementation": ""
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": { "Symfony\\Contracts\\Service\\": "" }
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.1-dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
src/Symfony/Contracts/Translation/LICENSE
Normal file
19
src/Symfony/Contracts/Translation/LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2018-2019 Fabien Potencier
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
9
src/Symfony/Contracts/Translation/README.md
Normal file
9
src/Symfony/Contracts/Translation/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Symfony Translation Contracts
|
||||||
|
=============================
|
||||||
|
|
||||||
|
A set of abstractions extracted out of the Symfony components.
|
||||||
|
|
||||||
|
Can be used to build on semantics that the Symfony components proved useful - and
|
||||||
|
that already have battle tested implementations.
|
||||||
|
|
||||||
|
See https://github.com/symfony/contracts/blob/master/README.md for more information.
|
33
src/Symfony/Contracts/Translation/composer.json
Normal file
33
src/Symfony/Contracts/Translation/composer.json
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"name": "symfony/translation-contracts",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Generic abstractions related to translation",
|
||||||
|
"keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"],
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"symfony/translation-implementation": ""
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": { "Symfony\\Contracts\\Translation\\": "" }
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.1-dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -23,9 +23,17 @@
|
|||||||
"psr/container": "^1.0",
|
"psr/container": "^1.0",
|
||||||
"symfony/polyfill-intl-idn": "^1.10"
|
"symfony/polyfill-intl-idn": "^1.10"
|
||||||
},
|
},
|
||||||
|
"replace": {
|
||||||
|
"symfony/cache-contracts": "self.version",
|
||||||
|
"symfony/event-dispatcher-contracts": "self.version",
|
||||||
|
"symfony/http-client-contracts": "self.version",
|
||||||
|
"symfony/service-contracts": "self.version",
|
||||||
|
"symfony/translation-contracts": "self.version"
|
||||||
|
},
|
||||||
"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",
|
||||||
|
"psr/event-dispatcher": "When using the EventDispatcher contracts",
|
||||||
"symfony/cache-implementation": "",
|
"symfony/cache-implementation": "",
|
||||||
"symfony/event-dispatcher-implementation": "",
|
"symfony/event-dispatcher-implementation": "",
|
||||||
"symfony/http-client-implementation": "",
|
"symfony/http-client-implementation": "",
|
||||||
|
Reference in New Issue
Block a user