-
Notifications
You must be signed in to change notification settings - Fork 10
/
ext_localconf.php
110 lines (105 loc) · 4.31 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') || die();
call_user_func(
function()
{
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'List',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'list, show, showAjax'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'show, showAjax'
]
);
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'Show',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'show, showAjax'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'show, showAjax'
]
);
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'Showbytag',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'showByTag'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'showByTag'
]
);
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'Intro',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'intro, show, showAjax, showByTag'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'show, showAjax, showByTag'
]
);
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'Closure',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'closure'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'closure'
]
);
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'Result',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'result'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'result'
]
);
ExtensionUtility::configurePlugin(
'FpMasterquiz',
'Highscore',
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'highscore'
],
[
\Fixpunkt\FpMasterquiz\Controller\QuizController::class => 'highscore'
]
);
// register statistics tables for garbage collection
// see https://docs.typo3.org/c/typo3/cms-scheduler/main/en-us/Installation/BaseTasks/Index.html#table-garbage-collection-task-example
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('scheduler')) {
// Add deletion task (sheduler)
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\Fixpunkt\FpMasterquiz\Task\DeleteParticipantTask::class] = [
'extension' => 'fp_masterquiz',
'title' => 'LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:tasks.title',
'description' => 'LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:tasks.description',
'additionalFields' => \Fixpunkt\FpMasterquiz\Task\DeleteParticipantAdditionalFieldProvider::class
];
// CSV-export task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\Fixpunkt\FpMasterquiz\Task\CsvExportTask::class] = [
'extension' => 'fp_masterquiz',
'title' => 'LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:tasks.exportTitle',
'description' => 'LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:tasks.exportDescription',
'additionalFields' => \Fixpunkt\FpMasterquiz\Task\CsvExportAdditionalFieldProvider::class
];
}
// Custom Logger
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Fixpunkt']['FpMasterquiz']['Controller']['writerConfiguration'] = [
// Configuration including all levels with higher severity
\Psr\Log\LogLevel::DEBUG => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFileInfix' => 'fpmasterquiz',
],
],
];
}
);