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);
|
$autoloadPackages = $this->collectDependencies($installedRepo, $autoloadPackages, $package);
|
||||||
|
|
||||||
$generator = $this->composer->getAutoloadGenerator();
|
$generator = $this->composer->getAutoloadGenerator();
|
||||||
$autoloads = array();
|
$autoloads = array(array($rootPackage, ''));
|
||||||
foreach ($autoloadPackages as $autoloadPackage) {
|
foreach ($autoloadPackages as $autoloadPackage) {
|
||||||
if ($autoloadPackage === $rootPackage) {
|
if ($autoloadPackage === $rootPackage) {
|
||||||
$downloadPath = '';
|
continue;
|
||||||
} else {
|
|
||||||
$downloadPath = $this->getInstallPath($autoloadPackage, $globalRepo && $globalRepo->hasPackage($autoloadPackage));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$downloadPath = $this->getInstallPath($autoloadPackage, $globalRepo && $globalRepo->hasPackage($autoloadPackage));
|
||||||
$autoloads[] = array($autoloadPackage, $downloadPath);
|
$autoloads[] = array($autoloadPackage, $downloadPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue