Browse Source

Merge pull request #8580 from IonBazan/bugfix/install-notifications

respect `notify-on-install` option
Jordi Boggiano 5 years ago
parent
commit
32e2e09c89
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Composer/Installer.php

+ 2 - 2
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);
         }