class PhpExtractor extends PhpExtractor

deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Component\Translation\Extractor\PhpExtractor instead

Constants

MESSAGE_TOKEN

METHOD_ARGUMENTS_TOKEN

DOMAIN_TOKEN

Methods

extract(string|array $resource, MessageCatalogue $catalog)

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

setPrefix(string $prefix)

Sets the prefix that should be used for new found messages.

Details

in PhpExtractor at line line 80
extract(string|array $resource, MessageCatalogue $catalog)

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

Parameters

string|array $resource files, a file or a directory
MessageCatalogue $catalog

in PhpExtractor at line line 96
setPrefix(string $prefix)

Sets the prefix that should be used for new found messages.

Parameters

string $prefix The prefix