This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
48 lines (38 loc) · 2.03 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
<?php
/**
* ext_localconf.php
*/
defined('TYPO3_MODE') or die();
call_user_func(static function($extKey) {
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['BE']['toolbarItems'][$extKey] = \Walther\JiraServiceDesk\Backend\ToolbarItems\ServiceDeskToolbarItem::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['updateSignalHook']['ServiceDeskToolbarItem::updateServiceDeskMenu'] = \Walther\JiraServiceDesk\Backend\ToolbarItems\ServiceDeskToolbarItem::class . '->updateServiceDeskMenuHook';
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'apps-toolbar-menu-service-desk',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => 'EXT:' . $extKey . '/Resources/Public/Icons/toolbar-icon.svg'
]
);
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$extKey])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$extKey] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
'options' => [
'defaultLifetime' => 900,
],
];
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('dashboard')) {
// Add module configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_dashboard.view {
templateRootPaths.1221344399 = EXT:' . $extKey . '/Resources/Private/Templates/
partialRootPaths.1221344399 = EXT:' . $extKey . '/Resources/Private/Partials/
layoutRootPaths.1221344399 = EXT:' . $extKey . '/Resources/Private/Layouts/
}'
);
}
}
}, 'jira_service_desk');