Glob based on PathMatcherInterface
Open
Nobody has claimed this yet.
help wanted
status:under discussion
type:feature
- Dominant language
- PHP
- Stars
- 37
- Forks
- 18
- Avg merge
- 59m
- Merged PRs (30d)
- 1
Description
$files = FileHelper::glob((new PathMatcher()->only('/var/www/yiiframework.com/**.jpg')));
- No need to specify directory such as in
findFiles(). - Should support absolute paths only.
- Should determine non-dynamic part of the pattern
/var/www/yiiframework.com/and start matching from there.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating FileHelper::glob() and PathMatcherInterface, including the PathMatcher usage shown in the example. Review how the current file matching determines its starting directory, then verify behavior for absolute patterns, the non-dynamic prefix, and the requested .jpg matching; add or update tests if the repository provides coverage for these APIs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100