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
parent
b580ad66a0
commit
a8ec134c2c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue