We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f8ecb commit 7c9ca86Copy full SHA for 7c9ca86
tests/integration/autoloader/autoload-with-composer/vendor/composer/InstalledVersions.php
@@ -12,16 +12,19 @@
12
namespace Composer;
13
class InstalledVersions
14
{
15
+ // Mocked data: installed packages and their versions
16
private static $installed = [
17
'vendor1/package1' => '1.1.3',
18
'vendor2/package2' => '2.1.5'
19
];
20
21
+ // This Composer's runtime API method is used by the agent to get the installed version of a package:
22
public static function getVersion(string $packageName)
23
24
return self::$installed[$packageName];
25
}
26
27
+ // This Composer's runtime API method is used by the agent to get the list of installed packages:
28
public static function getInstalledPackages()
29
30
// Return the package names
0 commit comments