1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions

This commit is contained in:
Jordi Boggiano 2020-04-19 16:00:21 +02:00
parent c757c9fa37
commit 0d1922dc27
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
29 changed files with 774 additions and 82 deletions

View file

@ -14,9 +14,14 @@ class ComposerStaticInitFilesAutoload
'61b776fd0ee84fb7d7d958ae46118ded' => __DIR__ . '/../..' . '/root.php',
);
public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
);
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->classMap = ComposerStaticInitFilesAutoload::$classMap;
}, null, ClassLoader::class);
}