private function LintCommand::getDirectoryIterator in Lockr 7.3
1 call to LintCommand::getDirectoryIterator()
- LintCommand::getFiles in vendor/
symfony/ yaml/ Command/ LintCommand.php
File
- vendor/
symfony/ yaml/ Command/ LintCommand.php, line 222
Class
- LintCommand
- Validates YAML files syntax and outputs encountered errors.
Namespace
Symfony\Component\Yaml\CommandCode
private function getDirectoryIterator($directory) {
$default = function ($directory) {
return new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), \RecursiveIteratorIterator::LEAVES_ONLY);
};
if (null !== $this->directoryIteratorProvider) {
return \call_user_func($this->directoryIteratorProvider, $directory, $default);
}
return $default($directory);
}