1
0
Fork 0

Make sure binaries are recreated before POST-hooks fire

pull/6728/merge
Jordi Boggiano 2017-11-28 16:07:28 +01:00
parent 17ec4c17b0
commit 4c4f516ea2
1 changed files with 6 additions and 6 deletions

View File

@ -301,12 +301,6 @@ class Installer
$this->autoloadGenerator->dump($this->config, $localRepo, $this->package, $this->installationManager, 'composer', $this->optimizeAutoloader); $this->autoloadGenerator->dump($this->config, $localRepo, $this->package, $this->installationManager, 'composer', $this->optimizeAutoloader);
} }
if ($this->runScripts) {
// dispatch post event
$eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
$this->eventDispatcher->dispatchScript($eventName, $this->devMode);
}
if ($this->executeOperations) { if ($this->executeOperations) {
// force binaries re-generation in case they are missing // force binaries re-generation in case they are missing
foreach ($localRepo->getPackages() as $package) { foreach ($localRepo->getPackages() as $package) {
@ -321,6 +315,12 @@ class Installer
} }
} }
if ($this->runScripts) {
// dispatch post event
$eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
$this->eventDispatcher->dispatchScript($eventName, $this->devMode);
}
// re-enable GC except on HHVM which triggers a warning here // re-enable GC except on HHVM which triggers a warning here
if (!defined('HHVM_VERSION')) { if (!defined('HHVM_VERSION')) {
gc_enable(); gc_enable();