diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 14:29:50 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 14:29:50 +0900 |
| commit | e89e1785e3df047a869c48b91709289a3b145b49 (patch) | |
| tree | e7ae86b6657821cf32bd1c4244d1c374af1ce911 /crates/shirabe/src/io/null_io.rs | |
| parent | 558c22c072d7e7e77e0e5e3493a71727301f7c73 (diff) | |
| download | php-shirabe-e89e1785e3df047a869c48b91709289a3b145b49.tar.gz php-shirabe-e89e1785e3df047a869c48b91709289a3b145b49.tar.zst php-shirabe-e89e1785e3df047a869c48b91709289a3b145b49.zip | |
refactor(archiver): yield PathBuf from ArchivableFilesFinder, drop SplFileInfo
Migrate ArchivableFilesFinder off Symfony's SplFileInfo onto Path/PathBuf,
resolving the phar_archiver TODO(phase-b) that required a .map() adapter to
bridge SplFileInfo -> PathBuf.
- ArchivableFilesFinder now yields PathBuf; accept() takes &Path; the exclude
closure receives &Path and uses Path::canonicalize / is_symlink. The
SplFileInfo -> PathBuf conversion happens once at the symfony get_iterator
boundary (get_iterator stays SplFileInfo for cache.rs).
- symfony Finder::filter callback changed to FnMut(&Path) (sole caller is the
finder).
- PharArchiver passes the finder straight into ArchivableFilesFilter, mirroring
PHP's new ArchivableFilesFilter($files).
- ZipArchiver consumes PathBuf items, computing the relative path via
strip_prefix(sources) in place of SplFileInfo::getRelativePathname.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/io/null_io.rs')
0 files changed, 0 insertions, 0 deletions
