ExtractorInterface::extract()

extract(string|array $resource, MessageCatalogue $catalogue) 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

ExtractorInterface

interface ExtractorInterface Extracts translation messages from a directory or files to the catalogue. New found messages are injected to the catalogue using the prefix. Methods extract(string|array $resource, MessageCatalogue $catalogue) 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, Message

ExtensionInterface::load()

load(array $configs, ContainerBuilder $container) Loads a specific configuration. Parameters array $configs An array of configuration values ContainerBuilder $container A ContainerBuilder instance Exceptions InvalidArgumentException When provided tag is not defined in this extension

ExtensionInterface::getPseudoClassTranslators()

callable[] getPseudoClassTranslators() Returns pseudo-class translators. Return Value callable[]

ExtensionPass

class ExtensionPass implements CompilerPassInterface Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

ExtensionInterface::getNamespace()

string getNamespace() Returns the namespace to be used for this extension (XML namespace). Return Value string The XML namespace

ExtensionInterface::getXsdValidationBasePath()

string getXsdValidationBasePath() Returns the base path for the XSD files. Return Value string The XSD base path

ExtensionInterface::getNodeTranslators()

callable[] getNodeTranslators() Returns node translators. These callables will receive the node as first argument and the translator as second argument. Return Value callable[]

ExtensionInterface::getName()

string getName() Returns extension name. Return Value string

ExtensionInterface::getFunctionTranslators()

callable[] getFunctionTranslators() Returns function translators. Return Value callable[]