浏览代码

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

respect `notify-on-install` option
Jordi Boggiano 5 年之前
父节点
当前提交
32e2e09c89
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);
         }