Skip to content

Commit b80085e

Browse files
committed
[UPGRADE] Use new Backend module registration
see: Feature: #96733 - New backend module registration API
1 parent ce839c7 commit b80085e

File tree

3 files changed

+29
-24
lines changed

3 files changed

+29
-24
lines changed

Configuration/Backend/Modules.php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use In2code\Femanager\Controller\UserBackendController;
4+
5+
return [
6+
'tx_femanager' => [
7+
'parent' => 'web',
8+
'position' => ['after' => 'web_info'],
9+
'access' => 'user,group',
10+
'icon' => 'EXT:femanager/Resources/Public/Icons/Extension.svg',
11+
'path' => '/module/web/femanager',
12+
'labels' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_mod.xlf',
13+
'extensionName' => 'Femanager',
14+
'controllerActions' => [
15+
UserBackendController::class => [
16+
'list',
17+
'confirmation',
18+
'userLogout',
19+
'confirmUser',
20+
'refuseUser',
21+
'listOpenUserConfirmations',
22+
'resendUserConfirmationRequest'
23+
],
24+
],
25+
],
26+
];

ext_tables.php

-21
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,6 @@
44
}
55

66
call_user_func(function () {
7-
/**
8-
* Include Backend Module
9-
*/
10-
/*if (!\In2code\Femanager\Utility\ConfigurationUtility::isDisableModuleActive() &&
11-
!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
12-
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
13-
'Femanager',
14-
'web',
15-
'm1',
16-
'',
17-
[
18-
\In2code\Femanager\Controller\UserBackendController::class => 'list,confirmation,userLogout,confirmUser,refuseUser,listOpenUserConfirmations,resendUserConfirmationRequest'
19-
],
20-
[
21-
'access' => 'user,group',
22-
'icon' => 'EXT:femanager/Resources/Public/Icons/Extension.svg',
23-
'labels' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_mod.xlf',
24-
]
25-
);
26-
}*/
27-
287
/**
298
* Add user TSConfig
309
*/

ext_typoscript_setup.typoscript

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Backend Module
22
module.tx_femanager {
33
view {
4-
templateRootPath = EXT:femanager/Resources/Private/Templates/
5-
partialRootPath = EXT:femanager/Resources/Private/Partials/
6-
layoutRootPath = EXT:femanager/Resources/Private/Layouts/
4+
templateRootPaths.0 = EXT:femanager/Resources/Private/Templates/
5+
partialRootPaths.0 = EXT:femanager/Resources/Private/Partials/
6+
layoutRootPaths.0 = EXT:femanager/Resources/Private/Layouts/
77
}
88
settings {
99
configPID = 1

0 commit comments

Comments
 (0)