{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "function (notFound|redirect)",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Controller.php",
"output_mode": "content",
"-A": 5
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "69: protected function redirect(string $url, int $status = 302): never\n70- {\n71- http_response_code($status);\n72- header(\"Location: {$url}\");\n73- exit;\n74- }\n--\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);",
"numLines": 13
}
}