-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathext_localconf.php
executable file
·56 lines (48 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
56
<?php
declare(strict_types=1);
use Featdd\DpnGlossary\Controller\TermController;
use Featdd\DpnGlossary\Routing\Aspect\StaticMultiRangeMapper;
use Featdd\DpnGlossary\Updates\PluginCTypeMigrationUpdateWizard;
use Featdd\DpnGlossary\Updates\PluginSwitchableControllerMigrationUpdateWizard;
use Featdd\DpnGlossary\Updates\SlugUpdateWizard;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die();
call_user_func(
function () {
ExtensionUtility::configurePlugin(
'DpnGlossary',
'Glossary',
[TermController::class => 'list, show'],
[TermController::class => ''],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'DpnGlossary',
'Glossarypreviewnewest',
[TermController::class => 'previewNewest'],
[TermController::class => ''],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'DpnGlossary',
'Glossarypreviewrandom',
[TermController::class => 'previewRandom'],
[TermController::class => ''],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'DpnGlossary',
'Glossarypreviewselected',
[TermController::class => 'previewSelected'],
[TermController::class => ''],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][SlugUpdateWizard::class] = SlugUpdateWizard::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][PluginCTypeMigrationUpdateWizard::class] = PluginCTypeMigrationUpdateWizard::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][PluginSwitchableControllerMigrationUpdateWizard::class] = PluginSwitchableControllerMigrationUpdateWizard::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['routing']['aspects']['StaticMultiRangeMapper'] = StaticMultiRangeMapper::class;
if (false === isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dpnglossary_termscache'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dpnglossary_termscache'] = [];
}
}
);