forked from in2code-de/femanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
33 lines (29 loc) · 1.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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'femanager',
'Pi1',
[
\In2code\Femanager\Controller\UserController::class => 'list, show, validate, loginAs, imageDelete',
\In2code\Femanager\Controller\NewController::class => 'new, create, confirmCreateRequest, createStatus, resendConfirmationMail, resendConfirmationDialogue',
\In2code\Femanager\Controller\EditController::class => 'edit, update, delete, confirmUpdateRequest',
\In2code\Femanager\Controller\InvitationController::class => 'new, create, edit, update, delete, status',
\In2code\Femanager\Controller\DataController::class => 'getStatesForCountry'
],
[
\In2code\Femanager\Controller\UserController::class => 'list, show, validate, loginAs, imageDelete',
\In2code\Femanager\Controller\NewController::class => 'new, create, confirmCreateRequest, createStatus, resendConfirmationMail, resendConfirmationDialogue',
\In2code\Femanager\Controller\EditController::class => 'edit, update, delete, confirmUpdateRequest',
\In2code\Femanager\Controller\InvitationController::class => 'new, create, edit, update, delete, status',
\In2code\Femanager\Controller\DataController::class => 'getStatesForCountry'
]
);
$container = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class);
// $container->registerImplementation(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper::class, \In2code\Femanager\Persistence\Generic\Mapper\DataMap::class);
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['femanager_ratelimiter'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['femanager_ratelimiter'] = [];
}
});