We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc1c9f commit 6d7ec3fCopy full SHA for 6d7ec3f
components/finder.rst
@@ -355,6 +355,15 @@ Restrict by a depth range by chaining calls or passing an array::
355
// same as above
356
$finder->depth(['> 2', '< 5']);
357
358
+Gitignore
359
+~~~~~~~~~~~~~~~
360
+
361
+The Finder can follow .gitignore file rules. :method:`Symfony\\Component\\Finder\\Finder::ignoreVCSIgnored`::
362
363
+ $finder->ignoreVCSIgnored(true);
364
365
+This will exclude files based on .gitignore rules as git does.
366
367
Custom Filtering
368
~~~~~~~~~~~~~~~~
369
0 commit comments