src/View/TwigView.php
public function loadTwig() {

        $loader = new \Twig_Loader_Filesystem(
            array (
                $this->viewsFolder
            )
        );

        // Set up environment
        $params = array(
            //'cache' => $this->viewsFolder . "cache",
        );

        $this->twig = new \Twig_Environment($loader, $params);
    }
public function loadTwig() {

        $loader = new \Twig_Loader_Filesystem(
            array (
                $this->viewsFolder
            )
        );

        // Set up environment
        $params = array(
            //'cache' => $this->viewsFolder . "cache",
        );

        $this->twig = new \Twig_Environment($loader, $params);
    }
Prepare Twig to be use into views
@return Twig instance