You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #9962 Different way for updating flex projects (Alumbrados)
This PR was squashed before being merged into the 4.0 branch (closes#9962).
Discussion
----------
Different way for updating flex projects
Since flex doesn't use symfony/symfony, I changed update symfony/symfony into "symfony/*" to update all Symfony packages.
Commits
-------
339b5bd Different way for updating flex projects
Copy file name to clipboardExpand all lines: setup/upgrade_minor.rst
+16-7
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
.. index::
2
2
single: Upgrading; Minor Version
3
3
4
-
Upgrading a Minor Version (e.g. 3.3.3 to 3.4.0)
4
+
Upgrading a Minor Version (e.g. 4.0.0 to 4.1.0)
5
5
===============================================
6
6
7
7
If you're upgrading a minor version (where the middle number changes), then
@@ -21,16 +21,25 @@ There are two steps to upgrading a minor version:
21
21
1) Update the Symfony Library via Composer
22
22
------------------------------------------
23
23
24
-
First, you need to update Symfony by modifying your ``composer.json`` file
25
-
to use the new version:
24
+
Your composer.json file should already be configured to allow your Symfony packages to be upgraded minor versions. But, if a package was not upgraded that should have been, check your ``composer.json`` file.
26
25
27
26
.. code-block:: json
28
27
29
28
{
30
29
"...": "...",
31
30
32
31
"require": {
33
-
"symfony/symfony": "3.4.*",
32
+
"symfony/asset": "^4.0",
33
+
"symfony/console": "^4.0",
34
+
"symfony/expression-language": "^4.0",
35
+
"symfony/form": "^4.0",
36
+
"symfony/framework-bundle": "^4.0",
37
+
"symfony/process": "^4.0",
38
+
"symfony/security-bundle": "^4.0",
39
+
"symfony/twig-bundle": "^4.0",
40
+
"symfony/validator": "^4.0",
41
+
"symfony/web-link": "^4.0",
42
+
"symfony/yaml": "^4.0"
34
43
},
35
44
"...": "...",
36
45
}
@@ -39,7 +48,7 @@ Next, use Composer to download new versions of the libraries:
Copy file name to clipboardExpand all lines: setup/upgrade_patch.rst
+2-10
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,14 @@
1
1
.. index::
2
2
single: Upgrading; Patch Version
3
3
4
-
Upgrading a Patch Version (e.g. 3.3.2 to 3.3.3)
4
+
Upgrading a Patch Version (e.g. 4.1.0 to 4.1.1)
5
5
===============================================
6
6
7
7
When a new patch version is released (only the last number changed), it is a
8
8
release that only contains bug fixes. This means that upgrading to a new patch
9
9
version is *really* easy:
10
10
11
-
.. code-block:: terminal
12
-
13
-
$ composer update symfony/symfony
14
-
15
-
That's it! You should not encounter any backwards-compatibility breaks or
16
-
need to change anything else in your code. That's because when you started
17
-
your project, your ``composer.json`` included Symfony using a constraint
18
-
like ``3.3.*``, where only the *last* version number will change when you
19
-
update.
11
+
To upgrade to a new "patch" release, see the :doc:Upgrading a Minor Version </setup/upgrade_minor> documentation. Thanks to Symfony's backwards compatibility promise, it's always safe to upgrade to the latest "minor" version.
0 commit comments