1
0
Fork 0

Dispatch "post-package-update" event after writing lock (#7766)

Fixes #7765
pull/7798/head
Mathias Brodala 2018-11-12 11:32:19 +01:00 committed by Jordi Boggiano
parent 008475dee7
commit 38a34159ef
1 changed files with 4 additions and 4 deletions

View File

@ -610,14 +610,14 @@ class Installer
}
}
if ($this->executeOperations || $this->writeLock) {
$localRepo->write();
}
$event = 'Composer\Installer\PackageEvents::POST_PACKAGE_'.strtoupper($jobType);
if (defined($event) && $this->runScripts) {
$this->eventDispatcher->dispatchPackageEvent(constant($event), $this->devMode, $policy, $pool, $installedRepo, $request, $operations, $operation);
}
if ($this->executeOperations || $this->writeLock) {
$localRepo->write();
}
}
if ($this->executeOperations) {