Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions components/finder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ can reuse those rules to exclude files and directories from the results with the
// excludes files/directories matching the .gitignore patterns
$finder->ignoreVCSIgnored(true);

Rules from higher levels will be overridden by those in lower levels.

.. note::

Only ``.gitignore`` files from search directories and their descendants are
read. Files from parent directories are ignored. To be consistent with Git
behavior, you should explicitly search from the Git repository root.

.. versionadded:: 5.4

``.gitignore`` files recursive support was introduced in Symfony 5.4.
Expand Down