-
Notifications
You must be signed in to change notification settings - Fork 18
/
ext_localconf.php
144 lines (140 loc) · 5.08 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') || die('Access denied.');
call_user_func(
function()
{
ExtensionUtility::configurePlugin(
'FpNewsletter',
'New',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'new, create, verify'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'new, create, verify'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Form',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'form'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => ''
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Subscribeext',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'subscribeExt, create, verify'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'subscribeExt, create, verify'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Verify',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'verify'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'verify'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Editemail',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'editEmail'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'editEmail'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Edit',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'edit, update, editEmail'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'edit, update, editEmail'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Unsubscribe',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'unsubscribe, delete, verifyUnsubscribe'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'unsubscribe, delete, verifyUnsubscribe'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Unsubscribelux',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'unsubscribeLux, unsubscribe, delete, verifyUnsubscribe'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'unsubscribeLux, unsubscribe, delete, verifyUnsubscribe'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Unsubscribemail',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'unsubscribeMail, unsubscribe, delete, verifyUnsubscribe'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'unsubscribeMail, unsubscribe, delete, verifyUnsubscribe'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Verifyunsubscribe',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'verifyUnsubscribe'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'verifyUnsubscribe'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'Resend',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'resend, verify'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'resend, verify'
]
);
ExtensionUtility::configurePlugin(
'FpNewsletter',
'List',
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => 'list'
],
[
\Fixpunkt\FpNewsletter\Controller\LogController::class => ''
]
);
/**
* Fluid Namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['fpnl'][] = 'Fixpunkt\FpNewsletter\ViewHelpers';
}
);
if (empty($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables']['tx_fpnewsletter_domain_model_log'])) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables']['tx_fpnewsletter_domain_model_log'] = [
'dateField' => 'tstamp',
'expirePeriod' => '180'
];
}