-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ClassMapGenerator::scanPaths can exclude specific dirs (#7)
* feat: ClassMapGenerator::scanPaths can exclude specific dirs Part of #6 Class Finder from Symfony is used to get an iterator on files matching the first argument of scanPaths. Currently if we want to exclude some files from the search we can provide a regex which will be test on each file. Finder has a method exclude() which allow us to exclude a list of dirs relative to the one passed in in(). It does a pre-filtering much more efficient than checking the regex. To keep backward compatibility, this new argument is added at then end of the method with a default value.
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 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