Rename new flag to --root-reqs, refs #4938
parent
f039407420
commit
04a1085d47
|
@ -147,6 +147,7 @@ php composer.phar update vendor/*
|
||||||
* **--lock:** Only updates the lock file hash to suppress warning about the
|
* **--lock:** Only updates the lock file hash to suppress warning about the
|
||||||
lock file being out of date.
|
lock file being out of date.
|
||||||
* **--with-dependencies:** Add also all dependencies of whitelisted packages to the whitelist.
|
* **--with-dependencies:** Add also all dependencies of whitelisted packages to the whitelist.
|
||||||
|
* **--root-reqs:** Restricts the update to your first degree dependencies.
|
||||||
* **--prefer-stable:** Prefer stable versions of dependencies.
|
* **--prefer-stable:** Prefer stable versions of dependencies.
|
||||||
* **--prefer-lowest:** Prefer lowest versions of dependencies. Useful for testing minimal
|
* **--prefer-lowest:** Prefer lowest versions of dependencies. Useful for testing minimal
|
||||||
versions of requirements, generally used with `--prefer-stable`.
|
versions of requirements, generally used with `--prefer-stable`.
|
||||||
|
|
|
@ -56,7 +56,7 @@ class UpdateCommand extends BaseCommand
|
||||||
new InputOption('prefer-stable', null, InputOption::VALUE_NONE, 'Prefer stable versions of dependencies.'),
|
new InputOption('prefer-stable', null, InputOption::VALUE_NONE, 'Prefer stable versions of dependencies.'),
|
||||||
new InputOption('prefer-lowest', null, InputOption::VALUE_NONE, 'Prefer lowest versions of dependencies.'),
|
new InputOption('prefer-lowest', null, InputOption::VALUE_NONE, 'Prefer lowest versions of dependencies.'),
|
||||||
new InputOption('interactive', 'i', InputOption::VALUE_NONE, 'Interactive interface with autocompletion to select the packages to update.'),
|
new InputOption('interactive', 'i', InputOption::VALUE_NONE, 'Interactive interface with autocompletion to select the packages to update.'),
|
||||||
new InputOption('root-require', null, InputOption::VALUE_NONE, 'Only update dependencies that are listed in the root package\'s composer.json file.'),
|
new InputOption('root-reqs', null, InputOption::VALUE_NONE, 'Restricts the update to your first degree dependencies.'),
|
||||||
))
|
))
|
||||||
->setHelp(<<<EOT
|
->setHelp(<<<EOT
|
||||||
The <info>update</info> command reads the composer.json file from the
|
The <info>update</info> command reads the composer.json file from the
|
||||||
|
@ -102,7 +102,7 @@ EOT
|
||||||
$packages = $this->getPackagesInteractively($io, $input, $output, $composer, $packages);
|
$packages = $this->getPackagesInteractively($io, $input, $output, $composer, $packages);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($input->getOption('root-require')) {
|
if ($input->getOption('root-reqs')) {
|
||||||
$require = array_keys($composer->getPackage()->getRequires());
|
$require = array_keys($composer->getPackage()->getRequires());
|
||||||
if (!$input->getOption('no-dev')) {
|
if (!$input->getOption('no-dev')) {
|
||||||
$requireDev = array_keys($composer->getPackage()->getDevRequires());
|
$requireDev = array_keys($composer->getPackage()->getDevRequires());
|
||||||
|
|
Loading…
Reference in New Issue