-
Notifications
You must be signed in to change notification settings - Fork 8
/
ext_tables.php
46 lines (40 loc) · 1.47 KB
/
ext_tables.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
<?php
defined('TYPO3') or die();
use TYPO3\CMS\Core\Information\Typo3Version;
call_user_func(
function () {
$version = new Typo3Version();
if (version_compare($version, '10.0.0', '>=')) {
$extensionName = 'sp';
$cache_actions_besaml = [Miniorange\Sp\Controller\BesamlController::class => 'request'];
} else {
$extensionName = 'Miniorange.sp';
$cache_actions_besaml = ['Besaml' => 'request'];
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
$extensionName,
'tools', // Make module a submodule of 'tools'
'besamlkey', // Submodule key
'4', // Position
$cache_actions_besaml,
[
'access' => 'admin,user,group',
'icon' => 'EXT:sp/Resources/Public/Icons/Extension.png',
'source' => 'EXT:sp/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:sp/Resources/Private/Language/locallang_bekey.xlf',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$extensionName,
'Fesaml',
'fesaml',
'EXT:sp/Resources/Public/Icons/Extension.svg'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$extensionName,
'Response',
'response',
'EXT:sp/Resources/Public/Icons/Extension.svg'
);
}
);