Skip to content

Instantly share code, notes, and snippets.

@theodesp theodesp/Kernel.php
Created Dec 7, 2019

Embed
What would you like to do?
public function process(ContainerBuilder $container)
{
if ($this->environment == 'translation')
{
$definition = $container->getDefinition('translator.default')->setPublic(true);
$definition->setClass('App\AppBundle\PhraseTranslator');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.