We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735f126 commit a23ad55Copy full SHA for a23ad55
1 file changed
src/StaticPHP/Package/PackageInstaller.php
@@ -155,6 +155,7 @@ public function run(bool $disable_delay_msg = false): void
155
}
156
157
$this->reconcilePhpSrcVersion();
158
+ $this->emitPreInstallEvents();
159
160
if ($this->interactive && !$disable_delay_msg) {
161
// show install or build options in terminal with beautiful output
@@ -361,6 +362,15 @@ public function isPackageInstalled(Package|string $package_name): bool
361
362
return false;
363
364
365
+ public function emitPreInstallEvents(): void
366
+ {
367
+ foreach ($this->packages as $package) {
368
+ if ($package->hasStage('preInstall')) {
369
+ $package->runStage('preInstall');
370
+ }
371
372
373
+
374
public function emitPostInstallEvents(): void
375
{
376
foreach ($this->packages as $package) {
0 commit comments