You are here

protected function AbstractFileExtractor::isFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Extractor

Code

protected function isFile($file) {
  if (!is_file($file)) {
    throw new \InvalidArgumentException(sprintf('The "%s" file does not exist.', $file));
  }
  return true;
}