Skip to content

Commit 7a28919

Browse files
committed
Adding a paragraph about updating multiple packages at once during an upgrade
1 parent 12ccde6 commit 7a28919

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

cookbook/upgrade/_update_all_packages.rst.inc

+3
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:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Dependency Errors
2+
~~~~~~~~~~~~~~~~~
3+
4+
If you get a dependency error, it may just mean that you *also* need to upgrade
5+
that package too. For example, Symfony 2.7 requires a higher version of Twig,
6+
so just upgrading ``symfony/symfony`` alone may give you an error. In this
7+
case, try adding the package in question to the ``update`` statement:
8+
9+
$ composer update symfony/symfony twig/twig
10+
11+
If this still doesn't work, your ``composer.json`` file may specify a version
12+
for a library that is not compatible with the newer Symfony version. In that
13+
case, updating that library to a newer version in ``composer.json`` may solve
14+
the issue.
15+
16+
Or, you may have deeper issues where different libraries depend on conflicting
17+
versions of other libraries. Check your error message to debug.

cookbook/upgrade/major_version.rst

+2
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

+2
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)