1
0
Fork 0

Only print suggestions in dev mode

There is no need to clutter the screen/logs/whatever with suggestions in production installs. If someone didn't care about them in dev mode, they certainly won't in production :)
pull/2883/head
David Zuelke 2014-04-06 00:07:20 +02:00
parent b580ad66a0
commit a8ec134c2c
1 changed files with 10 additions and 8 deletions

View File

@ -223,7 +223,8 @@ class Installer
} }
$this->installationManager->notifyInstalls(); $this->installationManager->notifyInstalls();
// output suggestions // output suggestions if we're in dev mode
if (!$this->devMode) {
foreach ($this->suggestedPackages as $suggestion) { foreach ($this->suggestedPackages as $suggestion) {
$target = $suggestion['target']; $target = $suggestion['target'];
foreach ($installedRepo->getPackages() as $package) { foreach ($installedRepo->getPackages() as $package) {
@ -234,6 +235,7 @@ class Installer
$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) {
// write lock // write lock