‪TYPO3CMS  ‪main
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 use Psr\Log\LogLevel;
22 
23 defined('TYPO3') or die();
24 
25 ‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] = [
26  'preview' => [
27  'module' => ‪PreviewModule::class,
28  'before' => ['cache'],
29  ],
30  'cache' => [
31  'module' => ‪CacheModule::class,
32  'after' => ['preview'],
33  ],
34  'tsdebug' => [
35  'module' => ‪TsDebugModule::class,
36  'after' => ['edit'],
37  'submodules' => [
38  'ts-waterfall' => [
39  'module' => ‪TypoScriptWaterfall::class,
40  ],
41  ],
42  ],
43  'info' => [
44  'module' => ‪InfoModule::class,
45  'after' => ['tsdebug'],
46  'submodules' => [
47  'general' => [
48  'module' => ‪GeneralInformation::class,
49  ],
50  'request' => [
51  'module' => ‪RequestInformation::class,
52  ],
53  'phpinfo' => [
54  'module' => ‪PhpInformation::class,
55  ],
56  'userint' => [
57  'module' => ‪UserIntInformation::class,
58  ],
59  ],
60  ],
61  '‪debug' => [
62  'module' => ‪DebugModule::class,
63  'after' => ['info'],
64  'submodules' => [
65  'log' => [
66  'module' => ‪Log::class,
67  ],
68  'queryInformation' => [
69  'module' => ‪QueryInformation::class,
70  ],
71  'pageTitle' => [
72  'module' => ‪PageTitle::class,
73  ],
74  'events' => [
75  'module' => ‪Events::class,
76  ],
77  ],
78  ],
79 ];
80 
81 ‪$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['adminPanel_save']
82  = ‪AjaxController::class . '::saveDataAction';
83 
84 // The admin panel has a module to show log messages. Register a debug logger to gather those.
85 ‪$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][LogLevel::DEBUG][‪InMemoryLogWriter::class] = [];
86 
87 ‪if (!is_array(‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['adminpanel_requestcache'] ?? null)) {
88  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['adminpanel_requestcache'] = [];
89 }
90 
91 if (!is_array(‪$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['driverMiddlewares'] ?? null)) {
92  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['DB']['Connections']['Default']['driverMiddlewares'] = [];
93 }
94 
95 ‪$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['driverMiddlewares']['adminpanel_loggingmiddleware'] = [
96  'target' => \TYPO3\CMS\Adminpanel\Log\DoctrineSqlLoggingMiddleware::class,
97  'after' => [
98  'typo3/core/custom-platform-driver-middleware',
99  ],
100 ];
‪TYPO3\CMS\Adminpanel\Modules\TsDebug\TypoScriptWaterfall
Definition: TypoScriptWaterfall.php:38
‪TYPO3\CMS\Adminpanel\Modules\Info\RequestInformation
Definition: RequestInformation.php:33
‪TYPO3\CMS\Adminpanel\Modules\CacheModule
Definition: CacheModule.php:32
‪TYPO3\CMS\Adminpanel\Modules\Info\PhpInformation
Definition: PhpInformation.php:33
‪debug
‪debug(mixed $variable='', ?string $title=null)
Definition: GlobalDebugFunctions.php:21
‪TYPO3\CMS\Adminpanel\Modules\InfoModule
Definition: InfoModule.php:29
‪TYPO3\CMS\Adminpanel\Modules\Debug\Events
Definition: Events.php:37
‪TYPO3\CMS\Adminpanel\Modules\TsDebugModule
Definition: TsDebugModule.php:29
‪TYPO3\CMS\Adminpanel\Modules\Info\UserIntInformation
Definition: UserIntInformation.php:34
‪TYPO3\CMS\Adminpanel\Modules\Debug\QueryInformation
Definition: QueryInformation.php:35
‪TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter
Definition: InMemoryLogWriter.php:38
‪TYPO3\CMS\Adminpanel\Controller\AjaxController
Definition: AjaxController.php:32
‪TYPO3\CMS\Adminpanel\Modules\Debug\Log
Definition: Log.php:38
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Adminpanel\Modules\Debug\PageTitle
Definition: PageTitle.php:34
‪if
‪if(PHP_SAPI !=='cli')
Definition: checkNamespaceIntegrity.php:27
‪TYPO3\CMS\Adminpanel\Modules\DebugModule
Definition: DebugModule.php:31
‪TYPO3\CMS\Adminpanel\Modules\PreviewModule
Definition: PreviewModule.php:46
‪TYPO3\CMS\Adminpanel\Modules\Info\GeneralInformation
Definition: GeneralInformation.php:37