public function FilesystemValidator::validateAreDirs in Simple OAuth (OAuth2) & OpenID Connect 8.3
Same name and namespace in other branches
- 8.4 src/Service/Filesystem/FilesystemValidator.php \Drupal\simple_oauth\Service\Filesystem\FilesystemValidator::validateAreDirs()
- 5.x src/Service/Filesystem/FilesystemValidator.php \Drupal\simple_oauth\Service\Filesystem\FilesystemValidator::validateAreDirs()
Validate that {
Parameters
array $paths: List of URIs.
Throws
\Drupal\simple_oauth\Service\Exception\FilesystemValidationException
File
- src/
Service/ Filesystem/ FilesystemValidator.php, line 51
Class
- FilesystemValidator
- @internal
Namespace
Drupal\simple_oauth\Service\FilesystemCode
public function validateAreDirs($paths) {
foreach ($paths as $path) {
if (!$this->fileSystemChecker
->isDirectory($path)) {
throw new FilesystemValidationException(strtr('Directory "@path" is not a valid directory.', [
'@path' => $path,
]));
}
}
}