public function run() { $twigConfig = $this->getConfig(); $loader = new Twig_Loader_Filesystem($twigConfig['template_path']); $this->resource = new Twig_Environment($loader); }