mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Clean up event dispatching code and make package events extend installer events
This commit is contained in:
parent
235b0cf84e
commit
3efed220a6
13 changed files with 279 additions and 151 deletions
|
@ -149,7 +149,7 @@ EOT
|
|||
|
||||
if ($noScripts === false) {
|
||||
// dispatch event
|
||||
$composer->getEventDispatcher()->dispatchCommandEvent(ScriptEvents::POST_ROOT_PACKAGE_INSTALL, $installDevPackages);
|
||||
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_ROOT_PACKAGE_INSTALL, $installDevPackages);
|
||||
}
|
||||
|
||||
$rootPackageConfig = $composer->getConfig();
|
||||
|
@ -217,7 +217,7 @@ EOT
|
|||
|
||||
if ($noScripts === false) {
|
||||
// dispatch event
|
||||
$composer->getEventDispatcher()->dispatchCommandEvent(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
||||
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
||||
}
|
||||
|
||||
chdir($oldCwd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue