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: ...@@ -11,7 +11,7 @@ your ``composer.json`` file:
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/yaml": "2.1.*" "symfony/yaml": "~2.1"
} }
Next, you need to tell the Validation Service that you are not using Next, you need to tell the Validation Service that you are not using
......
...@@ -55,7 +55,7 @@ Registering ...@@ -55,7 +55,7 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/form": "2.1.*" "symfony/form": "~2.1"
} }
If you are going to use the validation extension with forms, you must also If you are going to use the validation extension with forms, you must also
...@@ -65,9 +65,9 @@ Registering ...@@ -65,9 +65,9 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/validator": "2.1.*", "symfony/validator": "~2.1",
"symfony/config": "2.1.*", "symfony/config": "~2.1",
"symfony/translation": "2.1.*" "symfony/translation": "~2.1"
} }
The Symfony Form Component relies on the PHP intl extension. If you don't have The Symfony Form Component relies on the PHP intl extension. If you don't have
...@@ -76,7 +76,7 @@ Registering ...@@ -76,7 +76,7 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/locale": "2.1.*" "symfony/locale": "~2.1"
} }
If you want to use forms in your Twig templates, make sure to install the If you want to use forms in your Twig templates, make sure to install the
...@@ -85,7 +85,7 @@ Registering ...@@ -85,7 +85,7 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/twig-bridge": "2.1.*" "symfony/twig-bridge": "~2.1"
} }
Usage Usage
......
...@@ -60,7 +60,7 @@ Registering ...@@ -60,7 +60,7 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/security": "2.1.*" "symfony/security": "~2.1"
} }
.. caution:: .. caution::
......
...@@ -50,7 +50,7 @@ Registering ...@@ -50,7 +50,7 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/translation": "2.1.*" "symfony/translation": "~2.1"
} }
Usage Usage
...@@ -126,8 +126,8 @@ file: ...@@ -126,8 +126,8 @@ file:
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/config": "2.1.*", "symfony/config": "~2.1",
"symfony/yaml": "2.1.*" "symfony/yaml": "~2.1"
} }
Next, you have to create the language mappings in YAML files. A naming you can 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 ...@@ -60,7 +60,7 @@ some Symfony2 components and Twig. Add it as a dependency to your
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/twig-bridge": "2.1.*", "symfony/twig-bridge": "~2.1",
} }
When present, the ``TwigServiceProvider`` will provide you with the following When present, the ``TwigServiceProvider`` will provide you with the following
......
...@@ -44,7 +44,7 @@ Registering ...@@ -44,7 +44,7 @@ Registering
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/validator": "2.1.*" "symfony/validator": "~2.1"
} }
Usage 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