Преглед изворни кода

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