-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathext_localconf.php
More file actions
70 lines (62 loc) · 1.8 KB
/
ext_localconf.php
File metadata and controls
70 lines (62 loc) · 1.8 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
use In2code\Lux\Controller\FrontendController;
use In2code\Lux\Domain\Cache\CacheLayer;
use In2code\Lux\Domain\Cache\RateLimiterCache;
use In2code\Lux\Domain\Service\Image\CompanyImageService;
use In2code\Lux\Domain\Service\Image\VisitorImageService;
use In2code\Lux\Utility\CacheHashUtility;
use In2code\Lux\Utility\CacheLayerUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') || die();
/**
* Include Frontend Plugins
*/
ExtensionUtility::configurePlugin(
'Lux',
'Fe',
[FrontendController::class => 'dispatchRequest']
);
ExtensionUtility::configurePlugin(
'Lux',
'Email4link',
[FrontendController::class => 'email4link']
);
ExtensionUtility::configurePlugin(
'Lux',
'Pi1',
[FrontendController::class => 'trackingOptOut'],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
/**
* CK editor configuration
*/
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['lux'] = 'EXT:lux/Configuration/Yaml/CkEditor.yaml';
/**
* Fluid Namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['lux'][] = 'In2code\Lux\ViewHelpers';
/**
* Email templates
*/
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['templateRootPaths'][1762935800] =
'EXT:lux/Resources/Private/Templates/Mail/';
/**
* Caching framework
*/
$cacheKeys = [
VisitorImageService::CACHE_KEY,
CompanyImageService::CACHE_KEY,
CacheLayer::CACHE_KEY,
RateLimiterCache::CACHE_KEY,
];
foreach ($cacheKeys as $cacheKey) {
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheKey])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheKey] = [];
}
}
CacheLayerUtility::registerCacheLayers();
/**
* CacheHash: Add LUX parameters to excluded variables
*/
CacheHashUtility::addLuxArgumentsToExcludedVariables();