refactor(2.0): Add ExtraDownloadsRepository #36
Merged
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.
This is the first PR that add code to use Composer's terms. This one use the term
Repository
.path/to/files/text.txt
needpath/to/files/.composer-downloads/text-9a09b4dfda82e3e665e31092d1c3ec8d.json
path/to/files/executable.phar
needpath/to/files/.composer-downloads/executable-d0ea4c3608f59a037ffbb52f6cf742f5.json
path/to/files/extracted-zip/*
needpath/to/files/.composer-downloads/extracted-zip-78805a221a988e79ef3f42d7c5bfd418.json
vendor/composer/installed-extra-downloads.json
, similar to, but much smaller thanvendor/composer/installed.json
(only contains tracking checksum, not able to re-construct package objects from data)InstalledRepositoryInterface
interface is required, but we only use half of its methods. Other methods just returnnull
,0
(zero),[]
(empty array), or"a string"
. Hopefully it doesn't violateL (Liskov substitution principle)
inSOLID
<info>Extra file <comment>extra-file</comment> has been locally overriden in <comment>path/to/extra-file</comment>. To reset it, delete and reinstall.</info>