Symfony\Component\Finder\Finder::name
Adds rules that files must match.
You can use patterns (delimited with / sign), globs or simple strings. $finder->name('*.php') $finder->name('/\.php$/') // same as above $finder->name('test.php')
Signature
public function name(string
$pattern )
Parameters
$pattern
— string- A pattern (a regexp, a glob, or a string)
Returns
- Finder
- The current Finder instance