-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
27 lines (21 loc) · 900 Bytes
/
ext_localconf.php
File metadata and controls
27 lines (21 loc) · 900 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
declare(strict_types=1);
use Kanti\ServerTiming\DataProcessor\XClassContentDataProcessor;
use Kanti\ServerTiming\Extbase\XClassExtbaseDispatcher;
use Kanti\ServerTiming\SqlLogging\LoggingMiddleware;
use Kanti\ServerTiming\Utility\GuzzleUtility;
use TYPO3\CMS\Extbase\Mvc\Dispatcher;
use TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor;
$GLOBALS['TYPO3_CONF_VARS']['DB']['globalDriverMiddlewares']['global-driver-middleware-identifier'] = [
'target' => LoggingMiddleware::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][Dispatcher::class] = [
'className' => XClassExtbaseDispatcher::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][ContentDataProcessor::class] = [
'className' => XClassContentDataProcessor::class,
];
$handler = GuzzleUtility::getHandler();
if ($handler) {
$GLOBALS['TYPO3_CONF_VARS']['HTTP']['handler']['server_timing'] = $handler;
}