-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
79 lines (71 loc) · 2.82 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
<?php
/***
*
* This file is part of the "Freifunk knoten Benachrichtigung" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2016 Kevin Quiatkowski <[email protected]>
*
***/
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extKey) {
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'FfpiNodeUpdates',
'Nodeabo',
[
\FFPI\FfpiNodeUpdates\Controller\AboController::class => 'new, create, removeForm, confirm, remove',
\FFPI\FfpiNodeUpdates\Controller\NodeController::class => 'list, show'
],
// non-cacheable actions
[
\FFPI\FfpiNodeUpdates\Controller\AboController::class => 'create, remove, confirm',
\FFPI\FfpiNodeUpdates\Controller\NodeController::class => ''
]
);
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'FfpiNodeUpdates',
'Gatewayhealth',
[
\FFPI\FfpiNodeUpdates\Controller\GatewayController::class => 'overview'
],
// non-cacheable actions
[
\FFPI\FfpiNodeUpdates\Controller\GatewayController::class => ''
]
);
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'FfpiNodeUpdates',
'Freifunkapifile',
[
\FFPI\FfpiNodeUpdates\Controller\FreifunkapifileController::class => 'show'
],
// non-cacheable actions
[
\FFPI\FfpiNodeUpdates\Controller\FreifunkapifileController::class => ''
]
);
},
'ffpi_node_updates'
);
// Add task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][FFPI\FfpiNodeUpdates\Task\NotificationTask::class] = [
'extension' => 'ffpi_node_updates',
'title' => 'Node Status updates',
'description' => 'Sends notifications',
'additionalFields' => FFPI\FfpiNodeUpdates\Task\NotificationTaskAdditionalFieldProvider::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][FFPI\FfpiNodeUpdates\Task\ImportTask::class] = [
'extension' => 'ffpi_node_updates',
'title' => 'Node Import',
'description' => 'Imports all Nodes',
'additionalFields' => FFPI\FfpiNodeUpdates\Task\ImportTaskAdditionalFieldProvider::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][FFPI\FfpiNodeUpdates\Task\GatewayUpdateTask::class] = [
'extension' => 'ffpi_node_updates',
'title' => 'Gateway Update',
'description' => 'Updates the gateways',
'additionalFields' => FFPI\FfpiNodeUpdates\Task\GatewayUpdateTaskAdditionalFieldProvider::class,
];