{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "function notFound",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Controller.php",
"output_mode": "content",
"-C": 10
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "190-\n191- protected function jsonError(string $message, int $status = 500): void\n192- {\n193- $this->json(['success' => false, 'error' => $message], $status);\n194- }\n195-\n196- \/**\n197- * Return 404 Not Found response and exit.\n198- * Automatically detects JSON requests.\n199- *\/\n200: protected function notFound(string $message = 'Nicht gefunden'): never\n201- {\n202- if ($this->isJsonRequest()) {\n203- $this->json(['error' => $message], 404);\n204- } else {\n205- $this->text(\"404 - {$message}\", 404);\n206- }\n207- exit;\n208- }\n209-\n210- \/**",
"numLines": 21
}
}