mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Don't throw an exception if the called script is not one of the
event-scripts. This makes it possible for one to define their own scripts like "make-release" etc.
This commit is contained in:
parent
0e9a9a3875
commit
040bbaca51
1 changed files with 0 additions and 2 deletions
|
@ -56,8 +56,6 @@ EOT
|
|||
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" does not exist', $script));
|
||||
}
|
||||
|
||||
$this->getComposer()->getEventDispatcher()->dispatchCommandEvent($script, $input->getOption('dev') || !$input->getOption('no-dev'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue