nixpkgs/home/files/typo3-configuration/LoggingUriProcessor.php
Daniel Siepmann e346f5661a
Upgrade typo3 configuration
I got one project which uses helhum/typo3-config-handling.

I therefore needed to adjust the config to return the final result, as
the package expects an array instead of globals.

It also loads config multiple times. I therefore needed to remove
require_once and replace by require. But some code can't be required
multiple times and was moved to dedicated files with require_once.

This package prevents writing back silent upgrades, I therefore needed
to clean up the very old configs for TYPO3 < 10.
2024-06-13 18:43:21 +02:00

21 lines
512 B
PHP

<?php
namespace Codappix\CdxLogging;
use TYPO3\CMS\Core\Log\LogRecord;
use TYPO3\CMS\Core\Log\Processor\AbstractProcessor;
use TYPO3\CMS\Core\Log\Processor\ProcessorInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class UriProcessor extends AbstractProcessor implements ProcessorInterface
{
public function processLogRecord(LogRecord $logRecord)
{
$logRecord->addData([
'URI' => GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL'),
]);
return $logRecord;
}
}