private function getTwigEnvironment()
    {
        if (null == $this->twigEnvironment) {
            $this->twigEnvironment = $this->createTwigEnvironment();
        }
        return $this->twigEnvironment;
    }
private function getTwigEnvironment()
    {
        if (null == $this->twigEnvironment) {
            $this->twigEnvironment = $this->createTwigEnvironment();
        }
        return $this->twigEnvironment;
    }
private function getTwigEnvironment ( ) { if ( null == $ this -> twigEnvironment ) { $ this -> twigEnvironment = $ this -> createTwigEnvironment ( ) ; } return $ this -> twigEnvironment ; }
Creates a twig environment if not injected

@return Twig_Environment
Creates a twig environment if not injected