1
0
Fork 0

fixed post-create-project-cmd event

event occurs after autoloader is generated and refreshed
pull/1957/head
Tobias Munk 2013-06-02 23:21:36 +02:00
parent f0327caaa1
commit 60f96d5135
1 changed files with 6 additions and 5 deletions

View File

@ -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;
}