mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
fixed post-create-project-cmd event
event occurs after autoloader is generated and refreshed
This commit is contained in:
parent
f0327caaa1
commit
60f96d5135
1 changed files with 6 additions and 5 deletions
|
@ -164,11 +164,6 @@ EOT
|
|||
return 1;
|
||||
}
|
||||
|
||||
if ($noScripts === false) {
|
||||
// dispatch event
|
||||
$this->getComposer()->getEventDispatcher()->dispatchCommandEvent(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
||||
}
|
||||
|
||||
$hasVcs = $installedFromVcs;
|
||||
if (!$keepVcs && $installedFromVcs
|
||||
&& (
|
||||
|
@ -211,6 +206,12 @@ EOT
|
|||
}
|
||||
}
|
||||
|
||||
if ($noScripts === false) {
|
||||
// dispatch event
|
||||
require($this->getComposer()->getConfig()->get('vendor-dir').'/autoload.php');
|
||||
$this->getComposer()->getEventDispatcher()->dispatchCommandEvent(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue