-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathext_localconf.php
More file actions
57 lines (47 loc) · 1.87 KB
/
ext_localconf.php
File metadata and controls
57 lines (47 loc) · 1.87 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
<?php
declare(strict_types=1);
use In2code\In2studyfinder\Controller\StudyCourseController;
use In2code\In2studyfinder\Hooks\DataHandlerHook;
use In2code\In2studyfinder\Updates\StudyCourseSlugUpdater;
use In2code\In2studyfinder\Utility\CacheUtility;
use TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend;
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die();
ExtensionUtility::configurePlugin(
'In2studyfinder',
'Filter',
[StudyCourseController::class => 'filter,ajaxFilter'],
[StudyCourseController::class => 'filter,ajaxFilter'],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
ExtensionUtility::configurePlugin(
'In2studyfinder',
'Fastsearch',
[StudyCourseController::class => 'fastSearch'],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
ExtensionUtility::configurePlugin(
'In2studyfinder',
'Detail',
[StudyCourseController::class => 'detail'],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['studyCourseSlug']
= StudyCourseSlugUpdater::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['in2studyfinder_clearcache'] =
DataHandlerHook::class . '->clearCachePostProc';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['in2studyfinder'][] =
'In2code\In2studyfinder\ViewHelpers';
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][CacheUtility::CACHE_NAME] ?? null)) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][CacheUtility::CACHE_NAME] = [
'frontend' => VariableFrontend::class,
'backend' => Typo3DatabaseBackend::class,
'groups' => ['pages'],
'options' => [
'defaultLifetime' => 3600,
]
];
}