forked from mindshape-GmbH/mindshape_cookie_consent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
39 lines (33 loc) · 2.09 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . \Mindshape\MindshapeCookieConsent\Utility\SettingsUtility::EXTENSION_KEY . '/Configuration/TypoScript/constants.typoscript">'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . \Mindshape\MindshapeCookieConsent\Utility\SettingsUtility::EXTENSION_KEY . '/Configuration/TypoScript/setup.typoscript">'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Mindshape.' . \Mindshape\MindshapeCookieConsent\Utility\SettingsUtility::EXTENSION_KEY,
'Consent',
['Consent' => 'settings,consent'],
['Consent' => 'settings,consent']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Mindshape.' . \Mindshape\MindshapeCookieConsent\Utility\SettingsUtility::EXTENSION_KEY,
'Cookielist',
['Cookie' => 'list']
);
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
'afterExtensionInstall',
\Mindshape\MindshapeCookieConsent\Signal\ExtensionInstallationSignal::class,
'afterInstallation'
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = \Mindshape\MindshapeCookieConsent\Hook\RenderPreProcessHook::class . '->preProcess';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Mindshape\MindshapeCookieConsent\Hook\TCEMainHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Mindshape\MindshapeCookieConsent\Hook\TCEMainHook::class;
}
);