Fix support for --self --name-only, fixes #8844
parent
54d8cbe5f8
commit
bfe71fb952
|
@ -152,6 +152,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 ArrayRepository(array($package));
|
$repos = $installedRepo = new ArrayRepository(array($package));
|
||||||
} elseif ($input->getOption('platform')) {
|
} elseif ($input->getOption('platform')) {
|
||||||
$repos = $installedRepo = $platformRepo;
|
$repos = $installedRepo = $platformRepo;
|
||||||
|
|
Loading…
Reference in New Issue