mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 18:59:21 +02:00
Fix twig bridge
This commit is contained in:
parent
2ad828a340
commit
c336569684
@ -10,7 +10,7 @@ use MyAAC\Services\RouterService;
|
|||||||
use MyAAC\Services\StatusService;
|
use MyAAC\Services\StatusService;
|
||||||
use MyAAC\Settings;
|
use MyAAC\Settings;
|
||||||
use MyAAC\Visitors;
|
use MyAAC\Visitors;
|
||||||
use Twig\Environment;
|
use MyAAC\Twig\EnvironmentBridge as MyAAC_Twig_EnvironmentBridge;
|
||||||
use Twig\Loader\FilesystemLoader;
|
use Twig\Loader\FilesystemLoader;
|
||||||
|
|
||||||
class App
|
class App
|
||||||
@ -126,7 +126,7 @@ class App
|
|||||||
|
|
||||||
case 'twig':
|
case 'twig':
|
||||||
$dev_mode = (config('env') === 'dev');
|
$dev_mode = (config('env') === 'dev');
|
||||||
$this->instances[$what] = new Environment($this->get('twig-loader'), array(
|
$this->instances[$what] = new MyAAC_Twig_EnvironmentBridge($this->get('twig-loader'), array(
|
||||||
'cache' => CACHE . 'twig/',
|
'cache' => CACHE . 'twig/',
|
||||||
'auto_reload' => $dev_mode,
|
'auto_reload' => $dev_mode,
|
||||||
'debug' => $dev_mode
|
'debug' => $dev_mode
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
defined('MYAAC') or die('Direct access not allowed!');
|
defined('MYAAC') or die('Direct access not allowed!');
|
||||||
|
|
||||||
use MyAAC\Twig\EnvironmentBridge as MyAAC_Twig_EnvironmentBridge;
|
|
||||||
use Twig\Extension\DebugExtension as Twig_DebugExtension;
|
use Twig\Extension\DebugExtension as Twig_DebugExtension;
|
||||||
use Twig\TwigFilter;
|
use Twig\TwigFilter;
|
||||||
use Twig\TwigFunction;
|
use Twig\TwigFunction;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user