PhpExtractor::setPrefix()

setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Parameters string $prefix The prefix

PhpExtractor::extract()

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

PhpExtractor

class PhpExtractor extends AbstractFileExtractor implements ExtractorInterface PhpExtractor extracts translation messages from a PHP template. Constants MESSAGE_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 extract(string|array $resource, Messag

PhpExecutableFinder::findArguments()

array findArguments() Finds the PHP executable arguments. Return Value array The PHP executable arguments

PhpExecutableFinder::find()

string|false find(bool $includeArgs = true) Finds The PHP executable. Parameters bool $includeArgs Whether or not include command arguments Return Value string|false The PHP executable path or false if it cannot be found

PhpExecutableFinder

class PhpExecutableFinder An executable finder specifically designed for the PHP executable. Methods __construct() string|false find(bool $includeArgs = true) Finds The PHP executable. array findArguments() Finds the PHP executable arguments. Details __construct() string|false find(bool $includeArgs = true) Finds The PHP executable. Parameters bool $includeArgs Whether or not include comman

PhpEngine::supports()

bool supports(string|TemplateReferenceInterface $name) Returns true if this class is able to render the given template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if this class supports the given template, false otherwise

PhpEngine::setHelpers()

setHelpers(array $helpers) Sets the helpers. Parameters array $helpers An array of helper

PhpEngine::setHelpers()

setHelpers(array $helpers) Sets the helpers. Parameters array $helpers An array of helper

PhpEngine::setEscaper()

setEscaper(string $context, callable $escaper) Adds an escaper for the given context. Parameters string $context The escaper context (html, js, ...) callable $escaper A PHP callable