From 2ff73a8797fa6390bd065689ef3b993aede18c82 Mon Sep 17 00:00:00 2001 From: Ion Bazan Date: Wed, 5 Feb 2020 15:52:14 +0800 Subject: [PATCH] respect `notify-on-install` option --- src/Composer/Installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 71fa13d9b..a789b4c88 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -233,13 +233,13 @@ class Installer return $res; } } catch (\Exception $e) { - if ($this->executeOperations) { + if ($this->executeOperations && $this->config->get('notify-on-install')) { $this->installationManager->notifyInstalls($this->io); } throw $e; } - if ($this->executeOperations) { + if ($this->executeOperations && $this->config->get('notify-on-install')) { $this->installationManager->notifyInstalls($this->io); }