1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Add pre-status-cmd and post-status-cmd hooks

This commit is contained in:
Sascha Egerer 2013-08-01 08:44:07 +02:00
parent 1217a632fe
commit e31a0f8296
5 changed files with 37 additions and 0 deletions

View file

@ -50,6 +50,8 @@ EOT
ScriptEvents::POST_INSTALL_CMD,
ScriptEvents::PRE_UPDATE_CMD,
ScriptEvents::POST_UPDATE_CMD,
ScriptEvents::PRE_STATUS_CMD,
ScriptEvents::POST_STATUS_CMD,
))) {
if (defined('Composer\Script\ScriptEvents::'.str_replace('-', '_', strtoupper($script)))) {
throw new \InvalidArgumentException(sprintf('Script "%s" cannot be run with this command', $script));