@@ -28,14 +28,16 @@ https://packagist.org/packages/friendsofsymfony/user-bundle .
28
28
has a Packagist package it shows a link to the package. It's a
29
29
really usefull site to begin searching for bundles.
30
30
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" ``.
39
41
40
42
Now we can add the bundle to our ``composer.json `` file and update the
41
43
dependencies. You can do this manually:
@@ -48,7 +50,7 @@ dependencies. You can do this manually:
48
50
...,
49
51
"require" : {
50
52
...,
51
- "friendsofsymfony/user-bundle" : " dev-master "
53
+ "friendsofsymfony/user-bundle" : " 2.0.*@ dev"
52
54
}
53
55
}
54
56
@@ -68,7 +70,7 @@ Or you can do this in one command:
68
70
69
71
.. code-block :: bash
70
72
71
- $ php composer.phar require friendsofsymfony/user-bundle:dev-master
73
+ $ php composer.phar require friendsofsymfony/user-bundle:2.0. * @ dev
72
74
73
75
Enable the bundle
74
76
-----------------
0 commit comments