Browse Source

Add ignore-platform-reqs option to remove command

Olivier Laurendeau 10 years ago
parent
commit
6784570691
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Composer/Command/RemoveCommand.php

+ 2 - 0
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(<<<EOT
 The <info>remove</info> 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();