Commit 64b66b13 authored by Igor Wiedler's avatar Igor Wiedler

[docs] Adjust symfony/* constraints to use tilde operator

This will hopefully make upgrade to 2.2 more seamless
parent b356c04f
......@@ -11,7 +11,7 @@ your ``composer.json`` file:
.. code-block:: json
"require": {
"symfony/yaml": "2.1.*"
"symfony/yaml": "~2.1"
}
Next, you need to tell the Validation Service that you are not using
......
......@@ -55,7 +55,7 @@ Registering
.. code-block:: json
"require": {
"symfony/form": "2.1.*"
"symfony/form": "~2.1"
}
If you are going to use the validation extension with forms, you must also
......@@ -65,9 +65,9 @@ Registering
.. code-block:: json
"require": {
"symfony/validator": "2.1.*",
"symfony/config": "2.1.*",
"symfony/translation": "2.1.*"
"symfony/validator": "~2.1",
"symfony/config": "~2.1",
"symfony/translation": "~2.1"
}
The Symfony Form Component relies on the PHP intl extension. If you don't have
......@@ -76,7 +76,7 @@ Registering
.. code-block:: json
"require": {
"symfony/locale": "2.1.*"
"symfony/locale": "~2.1"
}
If you want to use forms in your Twig templates, make sure to install the
......@@ -85,7 +85,7 @@ Registering
.. code-block:: json
"require": {
"symfony/twig-bridge": "2.1.*"
"symfony/twig-bridge": "~2.1"
}
Usage
......
......@@ -60,7 +60,7 @@ Registering
.. code-block:: json
"require": {
"symfony/security": "2.1.*"
"symfony/security": "~2.1"
}
.. caution::
......
......@@ -50,7 +50,7 @@ Registering
.. code-block:: json
"require": {
"symfony/translation": "2.1.*"
"symfony/translation": "~2.1"
}
Usage
......@@ -126,8 +126,8 @@ file:
.. code-block:: json
"require": {
"symfony/config": "2.1.*",
"symfony/yaml": "2.1.*"
"symfony/config": "~2.1",
"symfony/yaml": "~2.1"
}
Next, you have to create the language mappings in YAML files. A naming you can
......
......@@ -60,7 +60,7 @@ some Symfony2 components and Twig. Add it as a dependency to your
.. code-block:: json
"require": {
"symfony/twig-bridge": "2.1.*",
"symfony/twig-bridge": "~2.1",
}
When present, the ``TwigServiceProvider`` will provide you with the following
......
......@@ -44,7 +44,7 @@ Registering
.. code-block:: json
"require": {
"symfony/validator": "2.1.*"
"symfony/validator": "~2.1"
}
Usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment