You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/installer/src/ComposerInstallerPlugin.php
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
useComposer\Installer\PackageEvent;
10
10
useComposer\Installer\PackageEvents;
11
11
useComposer\Package\PackageInterface;
12
+
useComposer\Package\RootPackageInterface;
12
13
useComposer\Util\Filesystem;
13
14
useComposer\Util\ProcessExecutor;
14
15
@@ -92,7 +93,7 @@ public function onPostPackageInstall(PackageEvent $event)
92
93
// first, load all platform requirements from all operations
93
94
// this is because if a package requires `ext-bcmath`, which is `replace`d by `php`, no install event is generated for `ext-bcmath`, but we still need to enable it
94
95
// we cannot do this via InstallerEvents::PRE_OPERATIONS_EXEC, as that fires before this plugin is even installed
@@ -131,7 +132,7 @@ public function onPostPackageInstall(PackageEvent $event)
131
132
// since this is, realistically, only used by PHP (for its bundled shared extensions), we can probably remove this in the future; however, doing this without a BC break would require bumping the installer version to 2.0, which (even if we fully re-built our own repositories) would break third-party repositories
132
133
// the alternative will be to remove this in e.g. v1.7 or v1.8, and adding deprecation warnings beforehand, in order to warn the (few, if any) users that have custom repositories with their own builds of PHP
133
134
// TODO: potentially remove this in a future version, but recordUserlandProvides() now uses this as well to speed up ".native" extension variant installs (by skipping unnecessary attempts)
0 commit comments