protected function AbstractFileExtractor::isFile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Extractor/AbstractFileExtractor.php \Symfony\Component\Translation\Extractor\AbstractFileExtractor::isFile()
Parameters
string $file:
Return value
bool
Throws
\InvalidArgumentException
File
- vendor/
symfony/ translation/ Extractor/ AbstractFileExtractor.php, line 61
Class
- AbstractFileExtractor
- Base class used by classes that extract translation messages from files.
Namespace
Symfony\Component\Translation\ExtractorCode
protected function isFile($file) {
if (!is_file($file)) {
throw new \InvalidArgumentException(sprintf('The "%s" file does not exist.', $file));
}
return true;
}