You are here

private function AbstractFileExtractor::toSplFileInfo in Plug 7

Parameters

string $file:

Return value

\SplFileInfo

1 call to AbstractFileExtractor::toSplFileInfo()
AbstractFileExtractor::extractFiles in lib/Symfony/translation/Extractor/AbstractFileExtractor.php

File

lib/Symfony/translation/Extractor/AbstractFileExtractor.php, line 49

Class

AbstractFileExtractor
Base class used by classes that extract translation messages from files.

Namespace

Symfony\Component\Translation\Extractor

Code

private function toSplFileInfo($file) {
  return $file instanceof \SplFileInfo ? $file : new \SplFileInfo($file);
}