Skip to main content

Module state

Module state 

Source
Expand description

Generation of the vendor/composer/ state files:

  • installed.json: lock entries re-dumped in ArrayDumper’s canonical key order (docs/reference/ArrayDumper.php), enriched with version_normalized, installation-source and install-path, sorted by (name, version), in JsonFile format (pretty 4 spaces, slashes/unicode unescaped);
  • installed.php: port of FilesystemRepository::generateInstalledVersions
    • dumpToPhpCode (real packages, replaced/provided virtual ones, root);
  • InstalledVersions.php: vendored copy of the Composer 2.10.3 file (it is a file COPIED by Composer, not generated; dedicated drift test).

Structs§

RootPackage
The project’s root package (composer.json), for installed.php.

Constants§

INSTALLED_VERSIONS_PHP

Functions§

installed_json
Full installed.json (text, with JsonFile::write’s trailing newline).
installed_php
Full installed.php (port of generateInstalledVersions + dumpToPhpCode).
write_state_files