-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
32 lines (26 loc) 路 1.62 KB
/
Copy pathext_localconf.php
File metadata and controls
32 lines (26 loc) 路 1.62 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
<?php
use MoveElevator\Typo3Toolbox\Backend\Avatar\MoveElevatorAvatarProvider;
use MoveElevator\Typo3Toolbox\Enumeration\Configuration;
use MoveElevator\Typo3Toolbox\Page\AssetRenderer;
use Networkteam\SentryClient;
use Psr\Log\LogLevel;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Page\AssetRenderer as Typo3AssetRenderer;
use TYPO3\CMS\Core\Utility\GeneralUtility;
(static function (): void {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][Typo3AssetRenderer::class] = [
'className' => AssetRenderer::class,
];
// Cache for the End-of-Life widget's endoflife.date responses (24h fresh, kept as stale fallback).
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][Configuration::EXT_KEY->value] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getBackendUserAvatar']['moveElevatorAvatar'] = [
'provider' => MoveElevatorAvatarProvider::class,
];
$extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(Configuration::EXT_KEY->value);
if ((bool)($extConf['sentryBackendEnabled'] ?? false)) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'] = SentryClient\DebugExceptionHandler::class;
$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][LogLevel::ERROR][SentryClient\SentryLogWriter::class] = [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'] = SentryClient\ProductionExceptionHandler::class;
}
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY->value]['systemInformationToolbar']['fileToCheck'] = 'index.php';
})();