-
Notifications
You must be signed in to change notification settings - Fork 11
/
ext_localconf.php
79 lines (70 loc) · 2.65 KB
/
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
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
71
72
73
74
75
76
77
78
79
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(
function () {
/**
* Include Frontend Plugins
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Lux',
'Fe',
[\In2code\Lux\Controller\FrontendController::class => 'dispatchRequest']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Lux',
'Email4link',
[\In2code\Lux\Controller\FrontendController::class => 'email4link']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Lux',
'Pi1',
[\In2code\Lux\Controller\FrontendController::class => 'trackingOptOut']
);
/**
* Add page TSConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import \'EXT:lux/Configuration/TSConfig/Lux.typoscript\''
);
/**
* Hooks
*/
// Linkhandler for Link Listener
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'][]
= \In2code\Lux\Hooks\LuxLinkListenerLinkhandler::class . '->postProcessTypoLink';
/**
* CK editor configuration
*/
if (\In2code\Lux\Utility\ConfigurationUtility::isCkEditorConfigurationNeeded()) {
$ckConfiguration = 'EXT:lux/Configuration/Yaml/CkEditor.yaml';
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['lux'] = $ckConfiguration;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'RTE.default.preset = lux'
);
}
/**
* Fluid Namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['lux'][] = 'In2code\Lux\ViewHelpers';
/**
* Caching framework
*/
$cacheKeys = [
\In2code\Lux\Domain\Service\Image\VisitorImageService::CACHE_KEY,
\In2code\Lux\Domain\Service\Image\CompanyImageService::CACHE_KEY,
\In2code\Lux\Domain\Cache\CacheLayer::CACHE_KEY
];
foreach ($cacheKeys as $cacheKey) {
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheKey])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheKey] = [];
}
}
\In2code\Lux\Utility\CacheLayerUtility::registerCacheLayers();
/**
* CacheHash: Add LUX parameters to excluded variables
*/
\In2code\Lux\Utility\CacheHashUtility::addLuxArgumentsToExcludedVariables();
}
);