You are here

public function ExtractorInterface::extract in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Extractor/ExtractorInterface.php \Symfony\Component\Translation\Extractor\ExtractorInterface::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:

1 method overrides ExtractorInterface::extract()
ChainExtractor::extract in vendor/symfony/translation/Extractor/ChainExtractor.php
Extracts translation messages from files, a file or a directory to the catalogue.

File

vendor/symfony/translation/Extractor/ExtractorInterface.php, line 30

Class

ExtractorInterface
Extracts translation messages from a directory or files to the catalogue. New found messages are injected to the catalogue using the prefix.

Namespace

Symfony\Component\Translation\Extractor

Code

public function extract($resource, MessageCatalogue $catalogue);