From 8a30d1429c9a9b288cc9e6a9c70326e7a3493646 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 8 Jun 2015 14:42:21 -0400 Subject: [PATCH] using --with-dependencies --- cookbook/upgrade/_update_dep_errors.rst.inc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cookbook/upgrade/_update_dep_errors.rst.inc b/cookbook/upgrade/_update_dep_errors.rst.inc index d99cb2ddb39..6b2eaea3c40 100644 --- a/cookbook/upgrade/_update_dep_errors.rst.inc +++ b/cookbook/upgrade/_update_dep_errors.rst.inc @@ -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