-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch jakzal/finder-glob-support (PR #6531)
This PR was merged into the master branch. Commits ------- 29b9611 [Finder] Added support for GLOB patterns in the directories passed to the in() method. Discussion ---------- [Finder] Added support for wildcard characters (GLOB patterns) Added support for wildcard characters in the paths passed to the *in()* method. Each pattern has to resolve to at least one directory, otherwise exception is thrown (just like when path to an invalid directory is passed). Example usage: ```php $finder = new \Symfony\Component\Finder\Finder(); $files = $finder->files() ->name('validators.en.*') ->in(array( 'src/Symfony/*/*/Resources/translations', )); foreach ($files as $file) { var_dump($file->getRealPath()); } ``` Bug fix: no Feature addition: yes Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: #5450 Todo: - License of the code: MIT Documentation PR: symfony/symfony-docs#2089
- Loading branch information
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters