Skip to content

Commit 898fb68

Browse files
committed
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
2 parents c7deeef + 339b5bd commit 898fb68

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

setup/_update_dep_errors.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ other Symfony dependencies too. In that case, try the following command:
66

77
.. code-block:: terminal
88

9-
$ composer update symfony/symfony --with-dependencies
9+
$ composer update "symfony/*" --with-all-dependencies
1010

1111
This updates ``symfony/symfony`` and *all* packages that it depends on, which will
1212
include several other packages. By using tight version constraints in

setup/upgrade_minor.rst

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Upgrading; Minor Version
33

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)
55
===============================================
66

77
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:
2121
1) Update the Symfony Library via Composer
2222
------------------------------------------
2323

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.
2625

2726
.. code-block:: json
2827
2928
{
3029
"...": "...",
3130
3231
"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"
3443
},
3544
"...": "...",
3645
}
@@ -39,7 +48,7 @@ Next, use Composer to download new versions of the libraries:
3948

4049
.. code-block:: terminal
4150
42-
$ composer update symfony/symfony
51+
$ composer update "symfony/*" --with-all-dependencies
4352
4453
.. include:: /setup/_update_dep_errors.rst.inc
4554

@@ -55,12 +64,12 @@ to your code to get everything working. Additionally, some features you're
5564
using might still work, but might now be deprecated. While that's just fine,
5665
if you know about these deprecations, you can start to fix them over time.
5766

58-
Every version of Symfony comes with an UPGRADE file (e.g. `UPGRADE-3.4.md`_)
67+
Every version of Symfony comes with an UPGRADE file (e.g. `UPGRADE-4.1.md`_)
5968
included in the Symfony directory that describes these changes. If you follow
6069
the instructions in the document and update your code accordingly, it should be
6170
safe to update in the future.
6271

6372
These documents can also be found in the `Symfony Repository`_.
6473

6574
.. _`Symfony Repository`: https://github.com/symfony/symfony
66-
.. _`UPGRADE-3.4.md`: https://github.com/symfony/symfony/blob/3.4/UPGRADE-3.4.md
75+
.. _`UPGRADE-4.1.md`: https://github.com/symfony/symfony/blob/4.1/UPGRADE-4.1.md

setup/upgrade_patch.rst

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
.. index::
22
single: Upgrading; Patch Version
33

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)
55
===============================================
66

77
When a new patch version is released (only the last number changed), it is a
88
release that only contains bug fixes. This means that upgrading to a new patch
99
version is *really* easy:
1010

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.
2012

2113
.. tip::
2214

0 commit comments

Comments
 (0)