forked from DMKEBUSINESSGMBH/typo3-t3twig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
30 lines (27 loc) · 889 Bytes
/
ext_localconf.php
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
<?php
/**
* Ext_localconf.
*
* @category TYPO3-Extension
*
* @author Eric Hertwig <dev@dmk-ebusiness.de>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* @see https://www.dmk-ebusiness.de/
*/
if (!defined('TYPO3_MODE')) {
exit('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge(
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'],
[
'TWIGTEMPLATE' => \DMK\T3twig\ContentObject\TwigContentObject::class,
]
);
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['t3twig'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['t3twig'] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
'groups' => ['system'],
];
}