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

main
Jordi Boggiano 3 years ago
parent 3e33cc1d93
commit d519fb8a53
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -224,6 +224,7 @@ class PluginManager
}
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);
$this->composer->getInstallationManager()->addInstaller($installer);
$this->registeredPlugins[$package->getName()] = $installer;

Loading…
Cancel
Save