Skip to content

Commit 8a30d14

Browse files
committed
using --with-dependencies
1 parent 7a28919 commit 8a30d14

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cookbook/upgrade/_update_dep_errors.rst.inc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Dependency Errors
22
~~~~~~~~~~~~~~~~~
33

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:
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:
86

9-
$ composer update symfony/symfony twig/twig
7+
$ composer update symfony/symfony --with-dependencies
8+
9+
This updates ``symfony/symfony`` and *all* packages that it depends on,
10+
will include several other packages. By using tight version constraints in
11+
``composer.json``, you can control what versions each library upgrades to.
1012

1113
If this still doesn't work, your ``composer.json`` file may specify a version
1214
for a library that is not compatible with the newer Symfony version. In that

0 commit comments

Comments
 (0)