‪TYPO3CMS  ‪main
TYPO3\CMS\Adminpanel\Middleware\SqlLogging Class Reference
Inheritance diagram for TYPO3\CMS\Adminpanel\Middleware\SqlLogging:

Public Member Functions

 __construct (private readonly ConnectionPool $connectionPool)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Detailed Description

Enable sql logging for the admin panel

Definition at line 33 of file SqlLogging.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Adminpanel\Middleware\SqlLogging::__construct ( private readonly ConnectionPool  $connectionPool)

Definition at line 35 of file SqlLogging.php.

Member Function Documentation

◆ process()

TYPO3\CMS\Adminpanel\Middleware\SqlLogging::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

Enable SQL Logging as early as possible to catch all queries if the admin panel is active

Definition at line 42 of file SqlLogging.php.

References TYPO3\CMS\Core\Database\ConnectionPool\DEFAULT_CONNECTION_NAME, TYPO3\CMS\Adminpanel\Utility\StateUtility\isActivatedForUser(), and TYPO3\CMS\Adminpanel\Utility\StateUtility\isOpen().