Browse Source

Update code to latest EventDispatcher, refs #2722

Jordi Boggiano 11 năm trước cách đây
mục cha
commit
e221757197
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Command/RunScriptCommand.php

+ 1 - 1
src/Composer/Command/RunScriptCommand.php

@@ -80,7 +80,7 @@ EOT
         if (in_array($script, $this->commandEvents)) {
             $this->getComposer()->getEventDispatcher()->dispatchCommandEvent($script, $input->getOption('dev') || !$input->getOption('no-dev'));
         } else {
-            $this->getComposer()->getEventDispatcher()->dispatchScript($script);
+            $this->getComposer()->getEventDispatcher()->dispatchScript($script, $input->getOption('dev') || !$input->getOption('no-dev'));
         }
     }
 }