public function Finder::filter in Database Sanitize 7
Filters the iterator with an anonymous function.
The anonymous function receives a \SplFileInfo and must return false to remove files.
Return value
$this
See also
File
- vendor/
symfony/ finder/ Finder.php, line 493
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function filter(\Closure $closure) {
$this->filters[] = $closure;
return $this;
}