0byt3m1n1
Path:
/
data
/
applications
/
aps
/
typo3
/
12.4.7
/
standard
/
htdocs
/
typo3
/
sysext
/
adminpanel
/
[
Home
]
File: ext_localconf.php
<?php declare(strict_types=1); use Psr\Log\LogLevel; use TYPO3\CMS\Adminpanel\Controller\AjaxController; use TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter; use TYPO3\CMS\Adminpanel\Modules\CacheModule; use TYPO3\CMS\Adminpanel\Modules\Debug\Events; use TYPO3\CMS\Adminpanel\Modules\Debug\Log; use TYPO3\CMS\Adminpanel\Modules\Debug\PageTitle; use TYPO3\CMS\Adminpanel\Modules\Debug\QueryInformation; use TYPO3\CMS\Adminpanel\Modules\DebugModule; use TYPO3\CMS\Adminpanel\Modules\Info\GeneralInformation; use TYPO3\CMS\Adminpanel\Modules\Info\PhpInformation; use TYPO3\CMS\Adminpanel\Modules\Info\RequestInformation; use TYPO3\CMS\Adminpanel\Modules\Info\UserIntInformation; use TYPO3\CMS\Adminpanel\Modules\InfoModule; use TYPO3\CMS\Adminpanel\Modules\PreviewModule; use TYPO3\CMS\Adminpanel\Modules\TsDebug\TypoScriptWaterfall; use TYPO3\CMS\Adminpanel\Modules\TsDebugModule; defined('TYPO3') or die(); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] = [ 'preview' => [ 'module' => PreviewModule::class, 'before' => ['cache'], ], 'cache' => [ 'module' => CacheModule::class, 'after' => ['preview'], ], 'tsdebug' => [ 'module' => TsDebugModule::class, 'after' => ['edit'], 'submodules' => [ 'ts-waterfall' => [ 'module' => TypoScriptWaterfall::class, ], ], ], 'info' => [ 'module' => InfoModule::class, 'after' => ['tsdebug'], 'submodules' => [ 'general' => [ 'module' => GeneralInformation::class, ], 'request' => [ 'module' => RequestInformation::class, ], 'phpinfo' => [ 'module' => PhpInformation::class, ], 'userint' => [ 'module' => UserIntInformation::class, ], ], ], 'debug' => [ 'module' => DebugModule::class, 'after' => ['info'], 'submodules' => [ 'log' => [ 'module' => Log::class, ], 'queryInformation' => [ 'module' => QueryInformation::class, ], 'pageTitle' => [ 'module' => PageTitle::class, ], 'events' => [ 'module' => Events::class, ], ], ], ]; $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['adminPanel_save'] = AjaxController::class . '::saveDataAction'; // The admin panel has a module to show log messages. Register a debug logger to gather those. $GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][LogLevel::DEBUG][InMemoryLogWriter::class] = []; if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['adminpanel_requestcache'] ?? null)) { $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['adminpanel_requestcache'] = []; } if (!is_array($GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['driverMiddlewares'] ?? null)) { $GLOBALS['TYPO3_CONF_VARS']['SYS']['DB']['Connections']['Default']['driverMiddlewares'] = []; } $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['driverMiddlewares']['adminpanel_loggingmiddleware'] = \TYPO3\CMS\Adminpanel\Log\DoctrineSqlLoggingMiddleware::class;