@@ -24,12 +24,13 @@ then it's *really* easy:
24
24
25
25
That's it! You should not encounter any backwards-compatibility breaks or
26
26
need to change anything else in your code. That's because when you started
27
- your Symfony project, your ``composer.json `` included Symfony using a constraint
28
- such as ``2.6.* ``, where only the *last * version number changes when you update.
27
+ your project, your ``composer.json `` included Symfony using a constraint
28
+ like ``2.6.* ``, where only the *last * version number will change when you
29
+ update.
29
30
30
31
You may also want to upgrade the rest of your libraries. If you've done a
31
- good job with your version constraints in ``composer.json ``, you can do this
32
- safely by running:
32
+ good job with your ` version constraints `_ in ``composer.json ``, you can do
33
+ this safely by running:
33
34
34
35
.. code-block :: bash
35
36
@@ -41,7 +42,7 @@ to new versions that contain backwards-compatibility breaking changes.
41
42
42
43
.. _upgrading-minor-version :
43
44
44
- Upgrading a Minor Version (e.g. 2.5.3 to 2.6.0 )
45
+ Upgrading a Minor Version (e.g. 2.5.3 to 2.6.1 )
45
46
-----------------------------------------------
46
47
47
48
If you're upgrading a minor version (where the middle number changes), then
@@ -53,16 +54,16 @@ in a second how to prepare for them.
53
54
54
55
There are two steps to upgrading:
55
56
56
- #. :ref: `upgrade-minor-symfony-composer `;
57
- #. :ref: `upgrade-minor-symfony-code `, which includes instructions for each version.
57
+ :ref: `upgrade-minor-symfony-composer `;
58
+ :ref: `upgrade-minor-symfony-code `
58
59
59
60
.. _`upgrade-minor-symfony-composer` :
60
61
61
- Update the Symfony Library via Composer
62
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62
+ 1) Update the Symfony Library via Composer
63
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63
64
64
- First, you need to update Symfony by modifying your ``composer.json `` to
65
- use the new version:
65
+ First, you need to update Symfony by modifying your ``composer.json `` file
66
+ to use the new version:
66
67
67
68
.. code-block :: json
68
69
@@ -71,7 +72,7 @@ use the new version:
71
72
72
73
"require" : {
73
74
"php" : " >=5.3.3" ,
74
- "symfony/symfony" : " ~ 2.6.*" ,
75
+ "symfony/symfony" : " 2.6.*" ,
75
76
"..." : " ... no changes to anything else..."
76
77
},
77
78
"..." : " ..." ,
@@ -84,8 +85,8 @@ Next, use Composer to download new versions of the libraries:
84
85
$ composer update symfony/symfony
85
86
86
87
You may also want to upgrade the rest of your libraries. If you've done a
87
- good job with your version constraints in ``composer.json ``, you can do this
88
- safely by running:
88
+ good job with your ` version constraints `_ in ``composer.json ``, you can do
89
+ this safely by running:
89
90
90
91
.. code-block :: bash
91
92
@@ -97,8 +98,8 @@ to new versions that contain backwards-compatibility breaking changes.
97
98
98
99
.. _`upgrade-minor-symfony-code` :
99
100
100
- Updating Your Code to Work with the new Version
101
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101
+ 2) Updating Your Code to Work with the new Version
102
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102
103
103
104
In theory, you should be done! However, you *may * need to make a few changes
104
105
to your code to get everything working. Additionally, some features you're
@@ -112,7 +113,7 @@ to read to see if you need any code changes.
112
113
113
114
.. tip ::
114
115
115
- Don't see the version here that you're upgrading too ? Just find the
116
+ Don't see the version here that you're upgrading to ? Just find the
116
117
UPGRADE-X.X.md file for the appropriate version on the `Symfony Repository `_.
117
118
118
119
Upgrading to Symfony 2.6
0 commit comments