Example #1
0
 private function twig()
 {
     Resources\Import::composer();
     $loader = new \Twig_Loader_Filesystem(APP . 'views');
     $twig = new \Twig_Environment($loader, array('auto_reload' => true, 'cache' => APP . 'cache'));
     $twig->addExtension(new Twig\Functions());
     return $twig;
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->simplehtmldom = Resources\Import::vendor('simplehtmldom/simple_html_dom');
     Resources\Import::composer();
 }