-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
47 lines (37 loc) · 1.81 KB
/
Copy pathext_localconf.php
File metadata and controls
47 lines (37 loc) · 1.81 KB
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
<?php
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WapplerSystems\FeRegistration\Controller\RegistrationController;
use WapplerSystems\FeRegistration\Routing\Aspect\PersistedFieldValueMapper;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['routing']['aspects']['PersistedFieldValueMapper'] = PersistedFieldValueMapper::class;
// Per-IP throttle store for the resendConfirmationEmail endpoint. Short-lived
// entries (~timeLock seconds) keep the cache tiny.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fe_registration'] ??= [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::class,
'options' => ['defaultLifetime' => 600],
];
ExtensionUtility::configurePlugin(
'fe_registration',
'Registration',
[
RegistrationController::class => 'new, confirm, success, confirmationMailSent'
],
[
RegistrationController::class => 'new, confirm, success'
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'fe_registration',
'ResendConfirmationEmail',
[
RegistrationController::class => 'resendConfirmationEmail'
],
[
RegistrationController::class => 'resendConfirmationEmail'
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterInitializeCurrentPage'][1739725421] = \WapplerSystems\FeRegistration\Hooks\FormInitializationHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeRendering'][1739725421] = \WapplerSystems\FeRegistration\Hooks\BeforeRenderingHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterFormStateInitialized'][1739725421] = \WapplerSystems\FeRegistration\Hooks\AfterFormStateInitializedHook::class;