Add warning when loading plugins of type composer-installer as they are unlikely to function correctly and should be upgraded to the composer-plugin type
parent
3e33cc1d93
commit
d519fb8a53
|
@ -224,6 +224,7 @@ class PluginManager
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oldInstallerPlugin) {
|
if ($oldInstallerPlugin) {
|
||||||
|
$this->io->writeError('<warning>Loading "'.$package->getName() . '" '.($isGlobalPlugin ? '(installed globally) ' : '').'which is a legacy composer-installer built for Composer 1.x, it is likely to cause issues as you are running Composer 2.x.</warning>');
|
||||||
$installer = new $class($this->io, $this->composer);
|
$installer = new $class($this->io, $this->composer);
|
||||||
$this->composer->getInstallationManager()->addInstaller($installer);
|
$this->composer->getInstallationManager()->addInstaller($installer);
|
||||||
$this->registeredPlugins[$package->getName()] = $installer;
|
$this->registeredPlugins[$package->getName()] = $installer;
|
||||||
|
|
Loading…
Reference in New Issue