Symfony\Component\Finder\Finder::filter
Filters the iterator with an anonymous function.
The anonymous function receives a \SplFileInfo and must return false to remove files.
Signature
public function filter(Closure
$closure )
Parameters
$closure
— \Closure- An anonymous function
Returns
- Finder
- The current Finder instance