mirror of
https://github.com/symfony/recipes.git
synced 2026-09-15 09:06:24 +03:00
removed version_aliases configuration setting
This commit is contained in:
-21
@@ -63,25 +63,6 @@ more aliases to make it easier to install:
|
|||||||
|
|
||||||
Developers can now install this dependency with ``composer require acme-log``.
|
Developers can now install this dependency with ``composer require acme-log``.
|
||||||
|
|
||||||
``version_aliases`` option
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
This option lists all the additional dependency versions (using the ``x.y``
|
|
||||||
format) that work with this very same recipe. This avoids duplicating recipes
|
|
||||||
when a new version of the package is released:
|
|
||||||
|
|
||||||
.. code-block:: json
|
|
||||||
|
|
||||||
// vendor/package-name/3.2/manifest.json
|
|
||||||
{
|
|
||||||
"version_aliases": ["3.3", "3.4", "4.0"]
|
|
||||||
}
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
When using ``version_aliases``, the directory where the recipe is defined
|
|
||||||
must be the oldest supported version (``3.2`` in the previous example).
|
|
||||||
|
|
||||||
Configurators
|
Configurators
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
@@ -300,8 +281,6 @@ the recipe:
|
|||||||
* JSON files must use 4 space indentations;
|
* JSON files must use 4 space indentations;
|
||||||
* Aliases are only supported in the main repository, not the contrib one;
|
* Aliases are only supported in the main repository, not the contrib one;
|
||||||
* Aliases must not be already defined by another package;
|
* Aliases must not be already defined by another package;
|
||||||
* All versions listed in `version_aliases` and the main version should be valid;
|
|
||||||
* Version defined in the directory must be the oldest amongst those defined in `version_aliases`;
|
|
||||||
* The manifest file only contains supported keys;
|
* The manifest file only contains supported keys;
|
||||||
* The package must exist on Packagist;
|
* The package must exist on Packagist;
|
||||||
* The package must have at least one version on Packagist;
|
* The package must have at least one version on Packagist;
|
||||||
|
|||||||
@@ -2,6 +2,5 @@
|
|||||||
"copy-from-recipe": {
|
"copy-from-recipe": {
|
||||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||||
},
|
},
|
||||||
"aliases": ["phpunit"],
|
"aliases": ["phpunit"]
|
||||||
"version_aliases": ["4.8", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7", "6.0", "6.1"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user