Skip to content

Commit ec31325

Browse files
committed
[Component][Finder] Documented wildcard (glob pattern) support.
1 parent 4c14ff4 commit ec31325

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/finder.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ Search in several locations by chaining calls to
6969

7070
$finder->files()->in(__DIR__)->in('/elsewhere');
7171

72+
.. versionadded:: 2.2
73+
Wildcard support was added in version 2.2.
74+
75+
Use wildcard characters to search in the directories matching a pattern::
76+
77+
$finder->in('src/Symfony/*/*/Resources');
78+
79+
Each pattern has to resolve to at least one directory path.
80+
7281
Exclude directories from matching with the
7382
:method:`Symfony\\Component\\Finder\\Finder::exclude` method::
7483

0 commit comments

Comments
 (0)