fixed post-create-project-cmd event
event occurs after autoloader is generated and refreshedpull/1957/head
parent
f0327caaa1
commit
60f96d5135
|
@ -164,11 +164,6 @@ EOT
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($noScripts === false) {
|
|
||||||
// dispatch event
|
|
||||||
$this->getComposer()->getEventDispatcher()->dispatchCommandEvent(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
|
||||||
}
|
|
||||||
|
|
||||||
$hasVcs = $installedFromVcs;
|
$hasVcs = $installedFromVcs;
|
||||||
if (!$keepVcs && $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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue