Merge branch '1.10'
commit
1d077ede70
|
@ -173,6 +173,8 @@ php composer.phar update "vendor/*"
|
||||||
* **--interactive:** Interactive interface with autocompletion to select the packages to update.
|
* **--interactive:** Interactive interface with autocompletion to select the packages to update.
|
||||||
* **--root-reqs:** Restricts the update to your first degree dependencies.
|
* **--root-reqs:** Restricts the update to your first degree dependencies.
|
||||||
|
|
||||||
|
Specifying one of the words `mirrors`, `lock`, or `nothing` as an argument has the same effect as specifying the option `--lock`, for example `composer update mirrors` is exactly the same as `composer update --lock`.
|
||||||
|
|
||||||
## require
|
## require
|
||||||
|
|
||||||
The `require` command adds new packages to the `composer.json` file from
|
The `require` command adds new packages to the `composer.json` file from
|
||||||
|
|
|
@ -155,6 +155,10 @@ EOT
|
||||||
|
|
||||||
if ($input->getOption('self')) {
|
if ($input->getOption('self')) {
|
||||||
$package = $this->getComposer()->getPackage();
|
$package = $this->getComposer()->getPackage();
|
||||||
|
if ($input->getOption('name-only')) {
|
||||||
|
$io->write($package->getName());
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
$repos = $installedRepo = new InstalledRepository(array(new RootPackageRepository($package)));
|
$repos = $installedRepo = new InstalledRepository(array(new RootPackageRepository($package)));
|
||||||
} elseif ($input->getOption('platform')) {
|
} elseif ($input->getOption('platform')) {
|
||||||
$repos = $installedRepo = new InstalledRepository(array($platformRepo));
|
$repos = $installedRepo = new InstalledRepository(array($platformRepo));
|
||||||
|
|
Loading…
Reference in New Issue