public function ChainExtractor::extract in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\ExtractorCode
public function extract($directory, MessageCatalogue $catalogue) {
foreach ($this->extractors as $extractor) {
$extractor
->extract($directory, $catalogue);
}
}