Esempio n. 1
0
 public function __construct(Router $router)
 {
     $twigLoader = new \Twig_Loader_Filesystem(\GlobalConfig::get('TWIG.TEMPLATE_PATH'));
     $this->twig = new \Twig_Environment($twigLoader, array('cache' => \GlobalConfig::get('TWIG.CACHE_PATH')));
     $this->router = $router;
 }