{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentPipelineController.php",
"offset": 325,
"limit": 65
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentPipelineController.php",
"content": " $this->json($result);\n }\n\n \/**\n * POST \/content-pipeline\/{id}\/config (AJAX)\n *\/\n public function updateConfig(string $id): void\n {\n $pipeline = $this->repository->findById((int) $id);\n\n if ($pipeline === null) {\n $this->json(['error' => 'Pipeline nicht gefunden'], 404);\n\n return;\n }\n\n $updateData = [];\n\n if (isset($_POST['source_path'])) {\n $sourcePath = trim($_POST['source_path']);\n if ($sourcePath === '') {\n $this->json(['error' => 'Quellpfad darf nicht leer sein'], 400);\n\n return;\n }\n $updateData['source_path'] = $sourcePath;\n }\n\n if (isset($_POST['extensions'])) {\n $extensions = PipelineStepConfig::parseExtensions($_POST['extensions']);\n if (empty($extensions)) {\n $this->json(['error' => 'Mindestens ein Dateityp erforderlich'], 400);\n\n return;\n }\n $updateData['extensions'] = $extensions;\n }\n\n if (empty($updateData)) {\n $this->json(['error' => 'Keine Änderungen'], 400);\n\n return;\n }\n\n $this->repository->update((int) $id, $updateData);\n\n $this->json(['success' => true]);\n }\n\n \/**\n * POST \/content-pipeline\/{id}\/delete\n *\/\n public function delete(string $id): void\n {\n $this->requireCsrf();\n\n $pipeline = $this->repository->findById((int) $id);\n\n if ($pipeline === null) {\n $this->notFound('Pipeline nicht gefunden');\n }\n\n $this->repository->delete((int) $id);\n\n $_SESSION['success'] = 'Pipeline geloescht.';",
"numLines": 65,
"startLine": 325,
"totalLines": 393
}
}
}