```php $files = FileHelper::glob((new PathMatcher()->only('/var/www/yiiframework.com/**.jpg'))); ``` 1. No need to specify directory such as in `findFiles()`. 2. Should support absolute paths only. 3. Should determine non-dynamic part of the pattern `/var/www/yiiframework.com/` and start matching from there.
findFiles()./var/www/yiiframework.com/and start matching from there.