You are here

private function AbstractFileExtractor::toSplFileInfo 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::toSplFileInfo()

Parameters

string $file:

Return value

\SplFileInfo

1 call to AbstractFileExtractor::toSplFileInfo()
AbstractFileExtractor::extractFiles in vendor/symfony/translation/Extractor/AbstractFileExtractor.php

File

vendor/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);
}