forked from derhansen/sf_event_mgt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_localconf.php
88 lines (75 loc) · 3.67 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
<?php
defined('TYPO3_MODE') or die();
call_user_func(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SfEventMgt',
'Pievent',
[
\DERHANSEN\SfEventMgt\Controller\EventController::class => 'list, detail, calendar, registration, saveRegistration, saveRegistrationResult, confirmRegistration, cancelRegistration, icalDownload, search',
],
// non-cacheable actions
[
\DERHANSEN\SfEventMgt\Controller\EventController::class => 'registration, saveRegistration, saveRegistrationResult, confirmRegistration, cancelRegistration, icalDownload, search',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SfEventMgt',
'Piuserreg',
[
\DERHANSEN\SfEventMgt\Controller\UserRegistrationController::class => 'list',
],
// non-cacheable actions
[
\DERHANSEN\SfEventMgt\Controller\UserRegistrationController::class => 'list',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SfEventMgt',
'Pipayment',
[
\DERHANSEN\SfEventMgt\Controller\PaymentController::class => 'redirect, success, failure, cancel, notify',
],
// non-cacheable actions
[
\DERHANSEN\SfEventMgt\Controller\PaymentController::class => 'redirect, success, failure, cancel, notify',
]
);
// DataHandler hooks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['DERHANSEN.sf_event_mgt'] =
'DERHANSEN\SfEventMgt\Hooks\DataHandlerHooks';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['DERHANSEN.sf_event_mgt'] =
'DERHANSEN\SfEventMgt\Hooks\DataHandlerHooks';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['event_clearcache'] =
\DERHANSEN\SfEventMgt\Hooks\DataHandlerHooks::class . '->clearCachePostProc';
// Page layout hooks to show preview of plugins
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['sfeventmgt_pievent']['event'] =
\DERHANSEN\SfEventMgt\Hooks\PageLayoutView::class . '->getEventPluginSummary';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['sfeventmgt_piuserreg']['userreg'] =
\DERHANSEN\SfEventMgt\Hooks\PageLayoutView::class . '->getUserRegPluginSummary';
if (TYPO3_MODE === 'BE') {
// Enable live search for events using "#event:"
$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['event'] = 'tx_sfeventmgt_domain_model_event';
}
// Register longitude- and latitude-evaluator for TCA
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][
\DERHANSEN\SfEventMgt\Evaluation\LongitudeEvaluator::class
] = '';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][
\DERHANSEN\SfEventMgt\Evaluation\LatitudeEvaluator::class
] = '';
// Register default payment methods
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sf_event_mgt']['paymentMethods'] = [
'invoice' => [
'class' => 'DERHANSEN\\SfEventMgt\\Payment\\Invoice',
'extkey' => 'sf_event_mgt'
],
'transfer' => [
'class' => 'DERHANSEN\\SfEventMgt\\Payment\\Transfer',
'extkey' => 'sf_event_mgt'
]
];
// Add page TSConfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sf_event_mgt/Configuration/TSConfig/Mod/Wizards/ContentElement.txt">
');
});