mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
@@ -9,8 +9,7 @@
|
||||
*/
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
use MyAAC\CsrfToken;
|
||||
use Twig\Environment as Twig_Environment;
|
||||
use MyAAC\Twig\EnvironmentBridge as MyAAC_Twig_EnvironmentBridge;
|
||||
use Twig\Extension\DebugExtension as Twig_DebugExtension;
|
||||
use Twig\Loader\FilesystemLoader as Twig_FilesystemLoader;
|
||||
use Twig\TwigFilter;
|
||||
@@ -20,7 +19,7 @@ global $twig, $twig_loader;
|
||||
|
||||
$dev_mode = (config('env') === 'dev');
|
||||
$twig_loader = new Twig_FilesystemLoader(SYSTEM . 'templates');
|
||||
$twig = new Twig_Environment($twig_loader, array(
|
||||
$twig = new MyAAC_Twig_EnvironmentBridge($twig_loader, array(
|
||||
'cache' => CACHE . 'twig/',
|
||||
'auto_reload' => $dev_mode,
|
||||
'debug' => $dev_mode
|
||||
|
Reference in New Issue
Block a user