public function createService()
    {
        $translator = new TranslatorChain();

        $translator->add(new LangArrayTranslator($this->dispatcher));

        $initializer = new TranslatorInitializer($this->dispatcher);

        return $initializer->initialize($translator);
    }
public function createService()
    {
        $translator = new TranslatorChain();

        $translator->add(new LangArrayTranslator($this->dispatcher));

        $initializer = new TranslatorInitializer($this->dispatcher);

        return $initializer->initialize($translator);
    }
public function createService ( ) { $ translator = new TranslatorChain ( ) ; $ translator -> add ( new LangArrayTranslator ( $ this -> dispatcher ) ) ; $ initializer = new TranslatorInitializer ( $ this -> dispatcher ) ; return $ initializer -> initialize ( $ translator ) ; }
Create the translator service.

@return \ContaoCommunityAlliance\Translator\TranslatorInterface
Create the translator service .