{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php",
"offset": 95,
"limit": 20
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php",
"content": "<?php\n\nnamespace Infrastructure\\Persistence;\n\nuse Domain\\Repository\\ContentRepositoryInterface;\nuse Infrastructure\\Config\\DatabaseFactory;\n\nclass ContentRepository implements ContentRepositoryInterface\n{\n private \\PDO $pdo;\n\n public function __construct()\n {\n $this->pdo = DatabaseFactory::content();\n }\n\n \/\/ ==================== Orders ====================\n\n public function findAllOrders(array $filters = [], int $limit = 50, int $offset = 0): array\n {\n $sql = 'SELECT co.*,\n ap.name as profile_name,\n cc.name as contract_name,\n cs.name as structure_name,\n (SELECT COUNT(*) FROM content_versions WHERE order_id = co.id) as version_count",
"numLines": 25,
"startLine": 1,
"totalLines": 321
}
}
}