1
0
Fork 0

Merge pull request #1957 from schmunk42/master

fixes autoload problem with commands for just installed packages
pull/1962/merge
Jordi Boggiano 2013-06-03 07:27:09 -07:00
commit 57f60fd538
1 changed files with 7 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,13 @@ EOT
}
}
if ($noScripts === false) {
// TODO: improve autoloader refreshing
require($this->getComposer()->getConfig()->get('vendor-dir').'/autoload.php');
// dispatch event
$this->getComposer()->getEventDispatcher()->dispatchCommandEvent(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
}
return 0;
}