public function createTwigEnvironmentBuilder()
    {
        $this->ensureCsrfTokenManagerAndTranslatorExist();
        $builder = new TwigEnvironmentBuilder();
        return $builder->setCsrfTokenManager($this->csrf_token_manager)->setTranslator($this->translator);
    }