vendor: unique composer bootstrap class names

vendor/ was seeded by copying af_readability's tree, so both plugins shipped
ComposerAutoloaderInitb44cc79a… and ComposerStaticInitb44cc79a…. tt-rss's
Preferences page loads every plugin on disk regardless of whether it is enabled,
so the second require redeclared those classes and fataled the request.

tt-rss blames whichever plugin lost the race -- the reported error named
af_readability, which was the innocent party.

Verified both autoloaders now load in the same process and the vendored
Readability and Masterminds classes still resolve.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011sSJdftQx5bW5HZHgUKF3i
This commit is contained in:
Michal
2026-08-30 06:43:56 +01:00
parent 0504f6cc87
commit b297c19090
4 changed files with 30 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitb44cc79a0eaef9cd9c2f2ac697cbe9c0
class ComposerStaticInitaffulltext0000000000000000000001
{
public static $prefixLengthsPsr4 = array (
'f' =>
@@ -94,9 +94,9 @@ class ComposerStaticInitb44cc79a0eaef9cd9c2f2ac697cbe9c0
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb44cc79a0eaef9cd9c2f2ac697cbe9c0::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb44cc79a0eaef9cd9c2f2ac697cbe9c0::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb44cc79a0eaef9cd9c2f2ac697cbe9c0::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitaffulltext0000000000000000000001::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitaffulltext0000000000000000000001::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitaffulltext0000000000000000000001::$classMap;
}, null, ClassLoader::class);
}