Merge pull request #2883 from dzuelke/dev-suggestions
Only print suggestions in dev modepull/2888/head
commit
abc34cc62a
|
@ -223,16 +223,18 @@ class Installer
|
||||||
}
|
}
|
||||||
$this->installationManager->notifyInstalls();
|
$this->installationManager->notifyInstalls();
|
||||||
|
|
||||||
// output suggestions
|
// output suggestions if we're in dev mode
|
||||||
foreach ($this->suggestedPackages as $suggestion) {
|
if (!$this->devMode) {
|
||||||
$target = $suggestion['target'];
|
foreach ($this->suggestedPackages as $suggestion) {
|
||||||
foreach ($installedRepo->getPackages() as $package) {
|
$target = $suggestion['target'];
|
||||||
if (in_array($target, $package->getNames())) {
|
foreach ($installedRepo->getPackages() as $package) {
|
||||||
continue 2;
|
if (in_array($target, $package->getNames())) {
|
||||||
|
continue 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$this->io->write($suggestion['source'].' suggests installing '.$suggestion['target'].' ('.$suggestion['reason'].')');
|
$this->io->write($suggestion['source'].' suggests installing '.$suggestion['target'].' ('.$suggestion['reason'].')');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->dryRun) {
|
if (!$this->dryRun) {
|
||||||
|
|
Loading…
Reference in New Issue