You are here

interface ExtractorInterface 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

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

@author Michel Salib <michelsalib@hotmail.com>

Hierarchy

Expanded class hierarchy of ExtractorInterface

All classes that implement ExtractorInterface

File

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

Namespace

Symfony\Component\Translation\Extractor
View source
interface ExtractorInterface {

  /**
   * Extracts translation messages from files, a file or a directory to the catalogue.
   *
   * @param string|array     $resource  files, a file or a directory
   * @param MessageCatalogue $catalogue The catalogue
   */
  public function extract($resource, MessageCatalogue $catalogue);

  /**
   * Sets the prefix that should be used for new found messages.
   *
   * @param string $prefix The prefix
   */
  public function setPrefix($prefix);

}

Members

Namesort descending Modifiers Type Description Overrides
ExtractorInterface::extract public function Extracts translation messages from files, a file or a directory to the catalogue. 1
ExtractorInterface::setPrefix public function Sets the prefix that should be used for new found messages. 1