Skip to content

Commit c20b6a6

Browse files
committed
Fix versions.
1 parent db27a16 commit c20b6a6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

cookbook/bundles/installation.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ https://packagist.org/packages/friendsofsymfony/user-bundle .
2828
has a Packagist package it shows a link to the package. It's a
2929
really usefull site to begin searching for bundles.
3030

31-
Now that you have the package name, you should determine the version you
32-
want to use. Usually different versions of a bundle correspond to a
33-
particular version of Symfony, this should be in the ``README`` file (in
34-
the Package, which you can view on Github or KnpBundles). If it isn't
35-
in the ``README``, you can use the version you want. In the case of the
36-
FOSUserBundle, the ``README`` file has a caution that version 1.2.0 must be
37-
used for Symfony 2.0 and 1.3 for Symfony 2.1+. Let's use the development
38-
version for this example.
31+
Now that you have the package name, you should determine the version
32+
you want to use. Usually different versions of a bundle correspond to
33+
a particular version of Symfony, this should be in the ``README`` file
34+
(in the Package, which you can view on Github or KnpBundles). If it
35+
isn't in the ``README``, you can use the version you want. In the case
36+
of the FOSUserBundle, the ``README`` file has a caution that version
37+
1.2.0 must be used for Symfony 2.0 and 1.3+ for Symfony
38+
2.1+. Packagist provides require statements for all existing
39+
versions. For the current development version it is now
40+
``"friendsofsymfony/user-bundle": "2.0.*@dev"``.
3941

4042
Now we can add the bundle to our ``composer.json`` file and update the
4143
dependencies. You can do this manually:
@@ -48,7 +50,7 @@ dependencies. You can do this manually:
4850
...,
4951
"require": {
5052
...,
51-
"friendsofsymfony/user-bundle": "dev-master"
53+
"friendsofsymfony/user-bundle": "2.0.*@dev"
5254
}
5355
}
5456
@@ -68,7 +70,7 @@ Or you can do this in one command:
6870

6971
.. code-block:: bash
7072
71-
$ php composer.phar require friendsofsymfony/user-bundle:dev-master
73+
$ php composer.phar require friendsofsymfony/user-bundle:2.0.*@dev
7274
7375
Enable the bundle
7476
-----------------

0 commit comments

Comments
 (0)