Read autoload.files into ComposerAutoloadMap - #392
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #392 +/- ##
=========================================
Coverage 98.57% 98.58%
- Complexity 1751 1758 +7
=========================================
Files 116 116
Lines 4432 4451 +19
=========================================
+ Hits 4369 4388 +19
Misses 63 63 ☔ View full report in Codecov by Harness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice S3.7a (#390).
ComposerAutoloadMapgains theautoload.filesset — the filesComposer loads wholesale rather than by name, and the only place a project's functions
and constants are locatable, since they have no name→file map (RFC 1 §3, Plan 0002 §3).
autoloadFiles(): list<string>, read fromvendor/composer/autoload_files.php.Composer keys that file by a content hash; the paths are taken as a plain list.
FilesystemBackendhalf sees its own files (RFC 1 §5.3).filesentries, which also back S3.7b and S3.7d.The accessor's consumer is
ComposerSymbolLocatorin S3.7d; it is public because that isa different class, and caller-less until then because of the split.
Note:
tests/Fixturesgained afilesautoload section, socomposer installneedsre-running there before the suite passes.