1
0
Fork 0

Fix for #2557, added missing run-scripts

pull/2800/merge
Sandy Pleyte 2014-02-18 15:48:45 +01:00 committed by Jordi Boggiano
parent 808e65f7de
commit fd4fb80d1e
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ EOT
ScriptEvents::POST_UPDATE_CMD, ScriptEvents::POST_UPDATE_CMD,
ScriptEvents::PRE_STATUS_CMD, ScriptEvents::PRE_STATUS_CMD,
ScriptEvents::POST_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)))) { if (defined('Composer\Script\ScriptEvents::'.str_replace('-', '_', strtoupper($script)))) {
throw new \InvalidArgumentException(sprintf('Script "%s" cannot be run with this command', $script)); throw new \InvalidArgumentException(sprintf('Script "%s" cannot be run with this command', $script));