Skip to content

Commit

Permalink
using --with-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jun 22, 2015
1 parent 7a28919 commit 8a30d14
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cookbook/upgrade/_update_dep_errors.rst.inc
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Dependency Errors
~~~~~~~~~~~~~~~~~

If you get a dependency error, it may just mean that you *also* need to upgrade
that package too. For example, Symfony 2.7 requires a higher version of Twig,
so just upgrading ``symfony/symfony`` alone may give you an error. In this
case, try adding the package in question to the ``update`` statement:
If you get a dependency error, it may simply mean that you need to upgrade
other Symfony dependencies too. In that case, try the following command:

$ composer update symfony/symfony twig/twig
$ composer update symfony/symfony --with-dependencies

This updates ``symfony/symfony`` and *all* packages that it depends on,
will include several other packages. By using tight version constraints in
``composer.json``, you can control what versions each library upgrades to.

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

0 comments on commit 8a30d14

Please sign in to comment.