-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
ext_localconf.php
103 lines (90 loc) · 3.93 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
<?php
declare(strict_types=1);
defined('TYPO3') or die();
use Evoweb\SfRegister\Controller\FeuserCreateController;
use Evoweb\SfRegister\Controller\FeuserDeleteController;
use Evoweb\SfRegister\Controller\FeuserEditController;
use Evoweb\SfRegister\Controller\FeuserInviteController;
use Evoweb\SfRegister\Controller\FeuserPasswordController;
use Evoweb\SfRegister\Controller\FeuserResendController;
use Evoweb\SfRegister\Domain\Model\FrontendUser;
use Evoweb\SfRegister\Domain\Model\FrontendUserInterface;
use Evoweb\SfRegister\Form\FormDataProvider\FormFields;
use Evoweb\SfRegister\Services\AutoLogin;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaCheckboxItems;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
(static function () {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][ FormFields::class ] = [
'depends' => [ TcaCheckboxItems::class ],
'before' => [ TcaSelectItems::class ],
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][ FrontendUserInterface::class ]['className'] = FrontendUser::class;
ExtensionUtility::configurePlugin(
'SfRegister',
'Create',
[ FeuserCreateController::class => FeuserCreateController::PLUGIN_ACTIONS ],
[ FeuserCreateController::class => FeuserCreateController::PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfRegister',
'Edit',
[ FeuserEditController::class => FeuserEditController::PLUGIN_ACTIONS ],
[ FeuserEditController::class => FeuserEditController::PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfRegister',
'Delete',
[ FeuserDeleteController::class => FeuserDeleteController::DELETE_PLUGIN_ACTIONS ],
[ FeuserDeleteController::class => FeuserDeleteController::DELETE_PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfRegister',
'RequestLink',
[ FeuserDeleteController::class => FeuserDeleteController::REQUEST_PLUGIN_ACTIONS ],
[ FeuserDeleteController::class => FeuserDeleteController::REQUEST_PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfRegister',
'Password',
[ FeuserPasswordController::class => FeuserPasswordController::PLUGIN_ACTIONS ],
[ FeuserPasswordController::class => FeuserPasswordController::PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfRegister',
'Invite',
[ FeuserInviteController::class => FeuserInviteController::PLUGIN_ACTIONS ],
[ FeuserInviteController::class => FeuserInviteController::PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfRegister',
'Resend',
[ FeuserResendController::class => FeuserResendController::PLUGIN_ACTIONS ],
[ FeuserResendController::class => FeuserResendController::PLUGIN_ACTIONS ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionManagementUtility::addService(
'sf_register',
'auth',
AutoLogin::class,
[
'title' => 'Auto login after registration with sf_register',
'description' => 'After a user registers with the help of sf_register this service authenticates the
user with a given session value',
'subtype' => 'getUserFE,authUserFE',
'available' => true,
'priority' => 75,
'quality' => 75,
'os' => '',
'exec' => '',
'className' => AutoLogin::class,
]
);
})();