Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit37c76b2

Browse files
committed
minor#9158 Add example for Finder::exclude (theofidry, javiereguiluz)
This PR was merged into the 2.7 branch.Discussion----------Add example for Finder::excludeFollow up ofsymfony/symfony#25945Commits-------99b0f7a Reworded the note as a code comment5e96849 Update finder.rst9970d42 Add example for Finder::exclude
2 parents487e918 +99b0f7a commit37c76b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎components/finder.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Each pattern has to resolve to at least one directory path.
103103
Exclude directories from matching with the
104104
:method:`Symfony\\Component\\Finder\\Finder::exclude` method::
105105

106+
// directories passed as argument must be relative to the ones defined with the in() method
106107
$finder->in(__DIR__)->exclude('ruby');
107108

108109
..versionadded::2.3

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp