class FileVersioner implements VersionerInterface
Constants
| REV_MANIFEST |
|
Methods
void
putRevision(string $file, string|null $revision)
Record the current revision of a file, or forget it when null.
void
deferWrites()
No-ops: every write here already rewrites the whole manifest, so there is nothing for a batch to save.
Details
at
line 20
__construct(Filesystem $filesystem)
at
line 25
void
putRevision(string $file, string|null $revision)
Record the current revision of a file, or forget it when null.
at
line 43
void
deferWrites()
No-ops: every write here already rewrites the whole manifest, so there is nothing for a batch to save.
at
line 47
void
flushWrites()
Store anything {deferWrites()} collected, and stop deferring.
Safe to call when nothing was deferred.
at
line 51
string|null
getRevision(string $file)
The recorded revision, or null when there is none.
at
line 56
array
allRevisions()
Every recorded revision, keyed by file.