Always make the root package autoloadable when executing plugins, fixes #9530
parent
147d884996
commit
de58c5499e
|
@ -186,13 +186,13 @@ class PluginManager
|
|||
$autoloadPackages = $this->collectDependencies($installedRepo, $autoloadPackages, $package);
|
||||
|
||||
$generator = $this->composer->getAutoloadGenerator();
|
||||
$autoloads = array();
|
||||
$autoloads = array(array($rootPackage, ''));
|
||||
foreach ($autoloadPackages as $autoloadPackage) {
|
||||
if ($autoloadPackage === $rootPackage) {
|
||||
$downloadPath = '';
|
||||
} else {
|
||||
$downloadPath = $this->getInstallPath($autoloadPackage, $globalRepo && $globalRepo->hasPackage($autoloadPackage));
|
||||
continue;
|
||||
}
|
||||
|
||||
$downloadPath = $this->getInstallPath($autoloadPackage, $globalRepo && $globalRepo->hasPackage($autoloadPackage));
|
||||
$autoloads[] = array($autoloadPackage, $downloadPath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue