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:
parent
1217a632fe
commit
e31a0f8296
5 changed files with 37 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue