Only include installed versions class when plugins and scripts are allowed, as it is not needed otherwise
parent
75fd2bbeb2
commit
952256247c
|
@ -350,8 +350,8 @@ class Factory
|
||||||
// load auth configs into the IO instance
|
// load auth configs into the IO instance
|
||||||
$io->loadConfiguration($config);
|
$io->loadConfiguration($config);
|
||||||
|
|
||||||
// load existing Composer\InstalledVersions instance if available
|
// load existing Composer\InstalledVersions instance if available and scripts/plugins are allowed, as they might need it
|
||||||
if (!class_exists('Composer\InstalledVersions', false) && file_exists($installedVersionsPath = $config->get('vendor-dir').'/composer/InstalledVersions.php')) {
|
if (!$disablePlugins && !$disableScripts && !class_exists('Composer\InstalledVersions', false) && file_exists($installedVersionsPath = $config->get('vendor-dir').'/composer/InstalledVersions.php')) {
|
||||||
include $installedVersionsPath;
|
include $installedVersionsPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue