{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Controller.php",
"offset": 45,
"limit": 20
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Controller.php",
"content": " return str_contains($accept, 'application\/json') || str_contains($contentType, 'application\/json');\n }\n\n protected function view(string $name, array $data = []): void\n {\n $data['csrfField'] = $this->csrfField();\n $data['csrfToken'] = $this->csrfToken();\n extract($data);\n $file = VIEW_PATH . '\/' . str_replace('.', '\/', $name) . '.php';\n\n if (file_exists($file)) {\n require $file;\n } else {\n throw new \\Exception(\"View not found: {$name}\");\n }\n }\n\n protected function json(mixed $data, int $status = 200): void\n {\n http_response_code($status);",
"numLines": 20,
"startLine": 45,
"totalLines": 288
}
}
}