-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtemplates.global.php
More file actions
42 lines (39 loc) · 1.2 KB
/
templates.global.php
File metadata and controls
42 lines (39 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
use Dot\Twig\Extension\DateExtension;
use Frontend\App\Twig\Extension\RouteExtension;
use Laminas\ServiceManager\Factory\InvokableFactory;
use Mezzio\Template\TemplateRendererInterface;
use Mezzio\Twig\TwigEnvironmentFactory;
use Mezzio\Twig\TwigRendererFactory;
use Twig\Environment;
return [
'dependencies' => [
'factories' => [
Environment::class => TwigEnvironmentFactory::class,
TemplateRendererInterface::class => TwigRendererFactory::class,
DateExtension::class => InvokableFactory::class,
],
],
'debug' => false,
'templates' => [
'extension' => 'html.twig',
],
'twig' => [
'assets_url' => '/',
'assets_version' => null,
'autoescape' => 'html',
'auto_reload' => true,
'cache_dir' => 'data/cache/twig',
'extensions' => [
DateExtension::class,
RouteExtension::class,
],
'optimizations' => -1,
'runtime_loaders' => [],
//'timezone' => '',
'globals' => [
'appName' => $app['name'] ?? '',
],
],
];