Skip to content

Commit 3ee1794

Browse files
committed
fix(docs): update documentation for finders
1 parent c098f40 commit 3ee1794

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/finder.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,9 @@ Criteria can be added to the finder using the following methods:
4848
- `in(array $dirs)` - Searches only in given directories.
4949
- `inNamespace(array $namespaces)` - Searches only in given namespaces.
5050
- `notInNamespace(array $namespaces)` - Searches only *outside* the given namespaces.
51+
- `path(string $pattern)` - Adds a filter based on file pathname. If starts with '/' will be interpreted as a regex.
52+
- `notPath(string $pattern)` - Adds a negative filter based on file pathname. If starts with '/' will be interpreted as a regex.
5153
- `filter(callable $callback)` - Adds a custom filter callback.
52-
54+
- `pathFilter(callable $callback)` - Adds a custom file pathname filter callback.
55+
- `skipNonInstantiable(bool $skip = true)` - Whether to skip or not abstract classes, traits and interfaces.
56+
- `skipBogonFiles(bool $skip = true)` - Prevents the inclusion of files known to cause bugs and possible fatal errors.

0 commit comments

Comments
 (0)