forked from mindshape-GmbH/mindshape_cookie_consent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
55 lines (45 loc) · 2.34 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
<?php
use Mindshape\MindshapeCookieConsent\Controller\ConsentController;
use Mindshape\MindshapeCookieConsent\Controller\CookieController;
use Mindshape\MindshapeCookieConsent\Hook\RenderPreProcessHook;
use Mindshape\MindshapeCookieConsent\Hook\TCEMainHook;
use Mindshape\MindshapeCookieConsent\Updates\PluginCTypeMigrationUpdateWizard;
use Mindshape\MindshapeCookieConsent\Utility\SettingsUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die();
call_user_func(
function () {
ExtensionManagementUtility::addTypoScriptConstants(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . SettingsUtility::EXTENSION_KEY . '/Configuration/TypoScript/constants.typoscript">'
);
ExtensionManagementUtility::addTypoScriptSetup(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . SettingsUtility::EXTENSION_KEY . '/Configuration/TypoScript/setup.typoscript">'
);
ExtensionUtility::configurePlugin(
SettingsUtility::EXTENSION_KEY,
'Consent',
[ConsentController::class => 'settings,consent'],
[ConsentController::class => 'consent'],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
SettingsUtility::EXTENSION_KEY,
'Consentmodal',
[ConsentController::class => 'modal'],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
SettingsUtility::EXTENSION_KEY,
'Cookielist',
[CookieController::class => 'list'],
[CookieController::class => ''],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][PluginCTypeMigrationUpdateWizard::class] = PluginCTypeMigrationUpdateWizard::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = RenderPreProcessHook::class . '->preProcess';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = TCEMainHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = TCEMainHook::class;
}
);