From 3ad47b5d2cc19b67250c879cf0a19eee367313bf Mon Sep 17 00:00:00 2001 From: Steve Buzonas Date: Mon, 10 Feb 2014 15:24:46 -0500 Subject: [PATCH] add allowing require to update dep chain, fixes composer/composer#2668 --- src/Composer/Command/RequireCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php index f33c2fd00..4a005d809 100644 --- a/src/Composer/Command/RequireCommand.php +++ b/src/Composer/Command/RequireCommand.php @@ -42,6 +42,7 @@ class RequireCommand extends InitCommand new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'), new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'), new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'), + new InputOption('update-with-dependencies', null, InputOption::VALUE_NONE, 'Allows inherited dependencies to be updated with explicit dependencies.'), )) ->setHelp(<<setPreferDist($input->getOption('prefer-dist')) ->setDevMode(true) ->setUpdate(true) - ->setUpdateWhitelist(array_keys($requirements)); + ->setUpdateWhitelist(array_keys($requirements)) + ->setWhitelistDependencies($input->getOption('update-with-dependencies')); ; $status = $install->run();