You are here

public function ChainExtractor::extract in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Extractor/ChainExtractor.php \Symfony\Component\Translation\Extractor\ChainExtractor::extract()

Extracts translation messages from files, a file or a directory to the catalogue.

Parameters

string|array $resource files, a file or a directory:

MessageCatalogue $catalogue The catalogue:

Overrides ExtractorInterface::extract

File

vendor/symfony/translation/Extractor/ChainExtractor.php, line 54

Class

ChainExtractor
ChainExtractor extracts translation messages from template files.

Namespace

Symfony\Component\Translation\Extractor

Code

public function extract($directory, MessageCatalogue $catalogue) {
  foreach ($this->extractors as $extractor) {
    $extractor
      ->extract($directory, $catalogue);
  }
}