PhpExtractor deprecated

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.

from PhpExtractor
setPrefix(string $prefix)

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

from PhpExtractor

Details

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

setPrefix(string $prefix)

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

Parameters

string $prefix The prefix

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.html