public function Finder::name in Database Sanitize 7
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')
Parameters
string $pattern A pattern (a regexp, a glob, or a string):
Return value
$this
See also
File
- vendor/
symfony/ finder/ Finder.php, line 165
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function name($pattern) {
$this->names[] = $pattern;
return $this;
}