TranslatorPass

class TranslatorPass implements CompilerPassInterface

Methods

__construct(string $translatorServiceId = 'translator.default', string $readerServiceId = 'translation.reader', string $loaderTag = 'translation.loader', string $debugCommandServiceId = 'console.command.translation_debug', string $updateCommandServiceId = 'console.command.translation_update')
process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Details

__construct(string $translatorServiceId = 'translator.default', string $readerServiceId = 'translation.reader', string $loaderTag = 'translation.loader', string $debugCommandServiceId = 'console.command.translation_debug', string $updateCommandServiceId = 'console.command.translation_update')

Parameters

string $translatorServiceId
string $readerServiceId
string $loaderTag
string $debugCommandServiceId
string $updateCommandServiceId

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Translation/DependencyInjection/TranslatorPass.html