Problem/Motivation
\Drupal\Core\Composer\Composer::preAutoloadDump contains this code block:
if ($repository->findPackage('symfony/http-kernel', $constraint)) {
$autoload['classmap'] = array_merge($autoload['classmap'], [
$vendor_dir . '/symfony/http-kernel/HttpKernel.php',
$vendor_dir . '/symfony/http-kernel/HttpKernelInterface.php',
$vendor_dir . '/symfony/http-kernel/TerminableInterface.php',
]);
}
if ($repository->findPackage('symfony/http-kernel', $constraint)) {
$autoload['classmap'] = array_merge($autoload['classmap'], [
$vendor_dir . '/symfony/http-kernel/HttpKernel.php',
$vendor_dir . '/symfony/http-kernel/HttpKernelInterface.php',
$vendor_dir . '/symfony/http-kernel/TerminableInterface.php',
]);
}
I think one time will be enough.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
spokjeComment #3
spokjePostponing on the commit of #3076684: Remove deprecated vendor cleanup scripts after which we'll need a separate
10.0.x/10.1.xpatch.Comment #4
spokjeComment #5
spokjeComment #6
spokjeComment #7
spokjeComment #8
longwaveThe 10.x patch is removing the wrong thing:
symfony/http-kernelis the duplicate block.Comment #9
spokjeOuch, nasty. Great catch @longwave, that'll teach me not do a quick patch before ending the day...
Comment #10
arunkumarkComment #11
longwaveThanks - #2 and #9 are RTBC.
Comment #12
alexpottCommitted and pushed 6793e2ea36 to 10.1.x and b2f6bba562 to 10.0.x. Thanks!
Committed and pushed c90ec155ac to 9.5.x and 17fcbdbbb9 to 9.4.x. Thanks!
Duplicate code is a bug.