public function Finder::ignoreVCS in Database Sanitize 7
Forces the finder to ignore version control directories.
This option is enabled by default.
Parameters
bool $ignoreVCS Whether to exclude VCS files or not:
Return value
$this
See also
ExcludeDirectoryFilterIterator
File
- vendor/
symfony/ finder/ Finder.php, line 350
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function ignoreVCS($ignoreVCS) {
if ($ignoreVCS) {
$this->ignore |= static::IGNORE_VCS_FILES;
}
else {
$this->ignore &= ~static::IGNORE_VCS_FILES;
}
return $this;
}