1
0
Fork 0

Add ignore-platform-reqs option to remove command

pull/3419/head
Olivier Laurendeau 2014-11-14 17:32:31 +01:00
parent ffffab37a2
commit 6784570691
1 changed files with 2 additions and 0 deletions

View File

@ -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('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-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('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 ->setHelp(<<<EOT
The <info>remove</info> command removes a package from the current The <info>remove</info> command removes a package from the current
@ -105,6 +106,7 @@ EOT
->setUpdate(true) ->setUpdate(true)
->setUpdateWhitelist($packages) ->setUpdateWhitelist($packages)
->setWhitelistDependencies($input->getOption('update-with-dependencies')) ->setWhitelistDependencies($input->getOption('update-with-dependencies'))
->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
; ;
$status = $install->run(); $status = $install->run();