-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
40 lines (33 loc) · 1.49 KB
/
ext_localconf.php
File metadata and controls
40 lines (33 loc) · 1.49 KB
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
<?php
/*
* This file is part of the TYPO3 Extension "Nagios Extensionlist"
*
* Author: Michael Schams <schams.net>
* Website: https://schams.net
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please see
* https://www.gnu.org/licenses/gpl.html
*/
use SchamsNet\NagiosExtensionlist\Controller\ExtensionlistController;
use TYPO3\CMS\Core\Cache\Backend\FileBackend;
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die();
(function () {
// register frontend plugin
ExtensionUtility::configurePlugin(
'NagiosExtensionlist',
'Extensionlist',
[ExtensionlistController::class => 'generateResponse'],
[ExtensionlistController::class => 'generateResponse']
);
// configure the caching framework
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['nagios_extensionlist'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['nagios_extensionlist']['frontend'] ??= VariableFrontend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['nagios_extensionlist']['backend'] ??= FileBackend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['nagios_extensionlist']['options']['defaultLifetime'] ??= 14400;
})();