{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Middleware\/CorrelationMiddleware.php",
"limit": 25
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Middleware\/CorrelationMiddleware.php",
"content": "<?php\n\nnamespace Framework\\Middleware;\n\n\/**\n * Middleware to ensure every request has a correlation ID.\n *\n * The correlation ID is used to trace all log entries for a single request.\n * It can be passed in via X-Correlation-ID header or generated automatically.\n *\/\nfinal class CorrelationMiddleware\n{\n \/**\n * Handle the request and set correlation ID.\n *\n * @param callable $next The next handler in the chain\n *\/\n public function handle(callable $next): void\n {\n $correlationId = $this->getOrCreateCorrelationId();\n\n \/\/ Make globally available\n $_SERVER['CORRELATION_ID'] = $correlationId;\n\n \/\/ Set response header for tracing",
"numLines": 25,
"startLine": 1,
"totalLines": 55
}
}
}