1
0
Fork 0

Fix autoloader compatibility with older releases of laminas/laminas-zendframework-bridge, refs #10349

pull/10386/head
Jordi Boggiano 2021-12-22 10:49:06 +01:00
parent 756c51d45e
commit 54123e4093
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 0 deletions

View File

@ -241,6 +241,11 @@ class PluginManager
$classLoader->register(false);
foreach ($map['files'] as $fileIdentifier => $file) {
// exclude laminas/laminas-zendframework-bridge:src/autoload.php in versions <1.4.1 as it was broken on fresh installs
// see https://github.com/composer/composer/issues/10349 - this hack can be removed once <1.4.1 releases stop being installed
if ($fileIdentifier === '7e9bd612cc444b3eed788ebbe46263a0' && $localRepo->findPackage('laminas/laminas-zendframework-bridge', '<1.4.1')) {
continue;
}
\Composer\Autoload\composerRequire($fileIdentifier, $file);
}