public function getTwig(): \Twig_Environment
    {
        if (is_null($this->twig)) {
            // Init Twig
            $this->twigLoader = new \Twig_Loader_Filesystem();
            $this->twig = new \Twig_Environment($this->twigLoader);
        }

        return $this->twig;
    }
public function getTwig(): \Twig_Environment
    {
        if (is_null($this->twig)) {
            // Init Twig
            $this->twigLoader = new \Twig_Loader_Filesystem();
            $this->twig = new \Twig_Environment($this->twigLoader);
        }

        return $this->twig;
    }
public function getTwig ( ) : \ Twig_Environment { if ( is_null ( $ this -> twig ) ) { // Init Twig $ this -> twigLoader = new \ Twig_Loader_Filesystem ( ) ; $ this -> twig = new \ Twig_Environment ( $ this -> twigLoader ) ; } return $ this -> twig ; }
Get Twig.

@return \Twig_Environment
Get Twig .