浏览代码

Fix for #2557, added missing run-scripts

Sandy Pleyte 11 年之前
父节点
当前提交
fd4fb80d1e
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/Composer/Command/RunScriptCommand.php

+ 6 - 0
src/Composer/Command/RunScriptCommand.php

@@ -52,6 +52,12 @@ EOT
             ScriptEvents::POST_UPDATE_CMD,
             ScriptEvents::PRE_STATUS_CMD,
             ScriptEvents::POST_STATUS_CMD,
+            ScriptEvents::POST_ROOT_PACKAGE_INSTALL,
+            ScriptEvents::POST_CREATE_PROJECT_CMD,
+            ScriptEvents::PRE_ARCHIVE_CMD,
+            ScriptEvents::POST_ARCHIVE_CMD,
+            ScriptEvents::PRE_AUTOLOAD_DUMP,
+            ScriptEvents::POST_AUTOLOAD_DUMP
         ))) {
             if (defined('Composer\Script\ScriptEvents::'.str_replace('-', '_', strtoupper($script)))) {
                 throw new \InvalidArgumentException(sprintf('Script "%s" cannot be run with this command', $script));