You are here

protected function AbstractFileExtractor::isFile in Plug 7

Parameters

string $file:

Return value

bool

Throws

\InvalidArgumentException

File

lib/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;
}