-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
59 lines (55 loc) · 2.49 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
<?php
use WebVision\WvT3unity\Hooks\Tcemain;
use WebVision\WvT3unity\Hooks\PageHook;
use TYPO3\CMS\Core\Utility\ArrayUtility;
use WebVision\WvT3unity\Hooks\ContentPostProc;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider;
use TYPO3\CMS\Backend\Controller\SimpleDataHandlerController;
(function () {
ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:wv_t3unity/Configuration/PageTS/Include.tsconfig">'
);
// This can probably be remove or needs reimplementation
// ArrayUtility::mergeRecursiveWithOverrule(
// $GLOBALS['TYPO3_CONF_VARS'],
// [
// 'SC_OPTIONS' => [
// 't3lib/class.t3lib_tcemain.php' => [
// 'processDatamapClass' => [
// 'wv_t3unity' => Tcemain::class,
// ],
// 'processCmdmapClass' => [
// 'wv_t3unity' => Tcemain::class,
// ],
// ],
// 'tslib/class.tslib_fe.php' => [
// 'contentPostProc-all' => [
// 'wv_t3unity' => ContentPostProc::class . '->hookEntry',
// ],
// 'contentPostProc-output' => [
// 'wv_t3unity' => ContentPostProc::class . '->hookEntry',
// ],
// ],
// ],
// ]
// );
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['mag_cache'] = 'WebVision\\WvT3unity\\Hooks\\ClearMagCache';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Backend\Template\Components\ButtonBar']['getButtonsHook']['mag_cache'] = PageHook::class . '->render';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'] =
[
SimpleDataHandlerController::class => [
'className' => WebVision\WvT3unity\Xclass\SimpleDataHandlerController::class,
],
PageProvider::class => [
'className' => WebVision\WvT3unity\Xclass\PageProvider::class,
],
TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::class => [
'className' => WebVision\WvT3unity\Middleware\PrepareTypoScriptFrontendRendering::class,
],
];
// Exclude cHash validation for certain parameters
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'] = [
'colPos','uid'
];
})();