Browse Source

Update code to latest EventDispatcher, refs #2722

Jordi Boggiano 11 years ago
parent
commit
e221757197
1 changed files with 1 additions and 1 deletions
  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'));
         }
     }
 }