class ChainExtractor implements ExtractorInterface
ChainExtractor extracts translation messages from template files.
addExtractor(string $format, ExtractorInterface $extractor) Adds a loader to the translation extractor. | ||
setPrefix(string $prefix) Sets the prefix that should be used for new found messages. | ||
extract($directory, MessageCatalogue $catalogue) Extracts translation messages from files, a file or a directory to the catalogue. |
Adds a loader to the translation extractor.
string | $format | The format of the loader |
ExtractorInterface | $extractor | The loader |
Sets the prefix that should be used for new found messages.
string | $prefix | The prefix |
Extracts translation messages from files, a file or a directory to the catalogue.
$directory | ||
MessageCatalogue | $catalogue | The catalogue |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Extractor/ChainExtractor.html