{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "grep -A 10 \"function notFound\" \/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Http\/ResponseTrait.php",
"description": "Inspect notFound signature"
}
}
{
"tool_response": {
"stdout": " protected function notFound(string $message = 'Nicht gefunden'): never\n {\n $accept = $_SERVER['HTTP_ACCEPT'] ?? '';\n $contentType = $_SERVER['CONTENT_TYPE'] ?? '';\n $isJson = str_contains($accept, 'application\/json') || str_contains($contentType, 'application\/json');\n\n if ($isJson) {\n $this->json(['error' => $message], 404);\n } else {\n $this->text(\"404 - {$message}\", 404);\n }",
"stderr": "",
"interrupted": false,
"isImage": false,
"noOutputExpected": false
}
}