10000 feature #5336 Adding a paragraph about updating multiple packages dur… · symfony/symfony-docs@02b9968 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02b9968

Browse files
committed
feature #5336 Adding a paragraph about updating multiple packages during an update (weaverryan)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5336). Discussion ---------- Adding a paragraph about updating multiple packages during an update | Q | A | ------------- | --- | Doc fix? | no | New docs? | no | Applies to | 2.3+ | Fixed tickets | n/a Hi guys! For my 2.7 upgrade, I needed to run `composer update symfony/symfony twig/twig`. I'm trying to include a note to help other people. I'd appreciate opinions on wording :). Thanks! Commits ------- bb0acd0 fixing bad wording 8a30d14 using --with-dependencies 7a28919 Adding a paragraph about updating multiple packages at once during an upgrade
2 parents 12ccde6 + bb0acd0 commit 02b9968

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

cookbook/upgrade/_update_all_packages.rst.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Upgrading other Packages
2+
~~~~~~~~~~~~~~~~~~~~~~~~
3+
14
You may also want to upgrade the rest of your libraries. If you've done a
25
good job with your `version constraints`_ in ``composer.json``, you can do
36
this safely by running:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Dependency Errors
2+
~~~~~~~~~~~~~~~~~
3+
4+
If you get a dependency error, it may simply mean that you need to upgrade
5+
other Symfony dependencies too. In that case, try the following command:
6+
7+
$ composer update symfony/symfony --with-dependencies
8+
9+
This updates ``symfony/symfony`` and *all* packages that it depends on, which will
10+
include several other packages. By using tight version constraints in
11+
``composer.json``, you can control what versions each library upgrades to.
12+
13+
If this still doesn't work, your ``composer.json`` file may specify a version
14+
for a library that is not compatible with the newer Symfony version. In that
15+
case, updating that library to a newer version in ``composer.json`` may solve
16+
the issue.
17+
18+
Or, you may have deeper issues where different libraries depend on conflicting
19+
versions of other libraries. Check your error message to debug.

cookbook/upgrade/major_version.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ Next, use Composer to download new versions of the libraries:
9898
9999
$ composer update symfony/symfony
100100
101+
.. include:: /cookbook/upgrade/_update_dep_errors.rst.inc
102+
101103
.. include:: /cookbook/upgrade/_update_all_packages.rst.inc
102104

103105
.. _upgrade-major-symfony-after:

cookbook/upgrade/minor_version.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Next, use Composer to download new versions of the libraries:
4141
4242
$ composer update symfony/symfony
4343
44+
.. include:: /cookbook/upgrade/_update_dep_errors.rst.inc
45+
4446
.. include:: /cookbook/upgrade/_update_all_packages.rst.inc
4547

4648
.. _`upgrade-minor-symfony-code`:

0 commit comments

Comments
 (0)
0