From 6784570691bdfd88ecf71a0983ca0e215535fdb3 Mon Sep 17 00:00:00 2001 From: Olivier Laurendeau Date: Fri, 14 Nov 2014 17:32:31 +0100 Subject: [PATCH] Add ignore-platform-reqs option to remove command --- src/Composer/Command/RemoveCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Command/RemoveCommand.php b/src/Composer/Command/RemoveCommand.php index cb83f56b7..c292a2812 100755 --- a/src/Composer/Command/RemoveCommand.php +++ b/src/Composer/Command/RemoveCommand.php @@ -41,6 +41,7 @@ class RemoveCommand extends Command new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'), new InputOption('update-no-dev', null, InputOption::VALUE_NONE, 'Run the dependency update with the --no-dev option.'), new InputOption('update-with-dependencies', null, InputOption::VALUE_NONE, 'Allows inherited dependencies to be updated with explicit dependencies.'), + new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'), )) ->setHelp(<<remove command removes a package from the current @@ -105,6 +106,7 @@ EOT ->setUpdate(true) ->setUpdateWhitelist($packages) ->setWhitelistDependencies($input->getOption('update-with-dependencies')) + ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs')) ; $status = $install->run();