-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathext_tables.php
More file actions
27 lines (24 loc) · 964 Bytes
/
ext_tables.php
File metadata and controls
27 lines (24 loc) · 964 Bytes
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
<?php
defined('TYPO3') or die();
use B13\Proxycachemanager\ProxyConfiguration;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\GeneralUtility;
if (
(GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() < 12 &&
(GeneralUtility::makeInstance(ProxyConfiguration::class))->showBackendModule()
) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'proxycachemanager',
'site',
'cdn_cache',
'bottom',
[\B13\Proxycachemanager\Controller\ManagementController::class => 'index,clearTag,purgeUrl'],
[
'access' => 'user,group',
'icon' => 'EXT:proxycachemanager/Resources/Public/Icons/CacheModule.png',
'labels' => 'LLL:EXT:proxycachemanager/Resources/Private/Language/locallang_module_cache.xlf',
'navigationComponentId' => '',
'inheritNavigationComponentFromMainModule' => false,
]
);
}