{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/InfrastructureServiceProvider.php",
"limit": 80
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/InfrastructureServiceProvider.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\n\/\/ @responsibility: Register Infrastructure services in DI container\n\nnamespace ServiceProvider;\n\nuse Domain\\Repository\\ChunkExplorerRepositoryInterface;\nuse Domain\\Repository\\CodeQualityRepositoryInterface;\nuse Domain\\Repository\\ContractRepositoryInterface;\nuse Domain\\Repository\\DependencyGraphRepositoryInterface;\nuse Domain\\Repository\\DokumentationRepositoryInterface;\nuse Domain\\Repository\\DokumentExplorerRepositoryInterface;\nuse Domain\\Repository\\FileAnalysisRepositoryInterface;\nuse Domain\\Repository\\FileBackupRepositoryInterface;\nuse Domain\\Repository\\KiProtokollRepositoryInterface;\nuse Domain\\Repository\\SeiteExplorerRepositoryInterface;\nuse Domain\\Service\\CodeScannerInterface;\nuse Framework\\Container;\nuse Infrastructure\\Audit\\AuditService;\nuse Infrastructure\\CodeAnalysis\\CodeQualityChecker;\nuse Infrastructure\\CodeAnalysis\\CodeScanner;\nuse Infrastructure\\CodeAnalysis\\JsFileParser;\nuse Infrastructure\\CodeAnalysis\\PhpFileParser;\nuse Infrastructure\\CodeAnalysis\\PythonFileParser;\nuse Infrastructure\\Docs\\ChunkAnalysisService;\nuse Infrastructure\\Docs\\ChunkAnalyzer;\nuse Infrastructure\\Docs\\ChunkDataRepository;\nuse Infrastructure\\Docs\\ChunkingService;\nuse Infrastructure\\Docs\\ChunkSearchService;\nuse Infrastructure\\Docs\\ChunkSyncService;\nuse Infrastructure\\Docs\\HybridSearchService;\nuse Infrastructure\\Formatter\\ApiResponseFormatter;\nuse Infrastructure\\Logging\\AuditLogger;\nuse Infrastructure\\Persistence\\ChunkExplorerRepository;\nuse Infrastructure\\Persistence\\CodeQualityRepository;\nuse Infrastructure\\Persistence\\ContractRepository;\nuse Infrastructure\\Persistence\\DependencyGraphRepository;\nuse Infrastructure\\Persistence\\DokumentationRepository;\nuse Infrastructure\\Persistence\\DokumentExplorerRepository;\nuse Infrastructure\\Persistence\\FileAnalysisRepository;\nuse Infrastructure\\Persistence\\FileBackupRepository;\nuse Infrastructure\\Persistence\\KiProtokollRepository;\nuse Infrastructure\\Persistence\\SeiteExplorerRepository;\n\n\/**\n * InfrastructureServiceProvider registers infrastructure and technical services.\n *\/\nfinal class InfrastructureServiceProvider implements ServiceProviderInterface\n{\n public function register(Container $container): void\n {\n \/\/ Repositories\n $container->set(DokumentExplorerRepository::class, fn (Container $c) => new DokumentExplorerRepository($c->get('pdo.dev')));\n $container->set(SeiteExplorerRepository::class, fn (Container $c) => new SeiteExplorerRepository($c->get('pdo.dev')));\n $container->set(ChunkExplorerRepository::class, fn (Container $c) => new ChunkExplorerRepository($c->get('pdo.dev')));\n $container->set(DokumentationRepository::class, fn (Container $c) => new DokumentationRepository($c->get('pdo.dev')));\n $container->set(FileBackupRepository::class, fn (Container $c) => new FileBackupRepository($c->get('pdo.dev')));\n $container->set(ContractRepository::class, fn (Container $c) => new ContractRepository($c->get('pdo.dev')));\n $container->set(KiProtokollRepository::class, fn (Container $c) => new KiProtokollRepository($c->get('pdo.dev')));\n $container->set(FileAnalysisRepository::class, fn (Container $c) => new FileAnalysisRepository($c->get('pdo.dev')));\n $container->set(DependencyGraphRepository::class, fn (Container $c) => new DependencyGraphRepository($c->get('pdo.dev')));\n $container->set(CodeQualityRepository::class, fn (Container $c) => new CodeQualityRepository($c->get('pdo.dev')));\n\n \/\/ Interface aliases\n $container->set(DokumentationRepositoryInterface::class, fn (Container $c) => $c->get(DokumentationRepository::class));\n $container->set(DokumentExplorerRepositoryInterface::class, fn (Container $c) => $c->get(DokumentExplorerRepository::class));\n $container->set(SeiteExplorerRepositoryInterface::class, fn (Container $c) => $c->get(SeiteExplorerRepository::class));\n $container->set(ChunkExplorerRepositoryInterface::class, fn (Container $c) => $c->get(ChunkExplorerRepository::class));\n $container->set(FileAnalysisRepositoryInterface::class, fn (Container $c) => $c->get(FileAnalysisRepository::class));\n $container->set(DependencyGraphRepositoryInterface::class, fn (Container $c) => $c->get(DependencyGraphRepository::class));\n $container->set(CodeQualityRepositoryInterface::class, fn (Container $c) => $c->get(CodeQualityRepository::class));\n $container->set(FileBackupRepositoryInterface::class, fn (Container $c) => $c->get(FileBackupRepository::class));\n $container->set(KiProtokollRepositoryInterface::class, fn (Container $c) => $c->get(KiProtokollRepository::class));\n $container->set(ContractRepositoryInterface::class, fn (Container $c) => $c->get(ContractRepository::class));\n\n \/\/ Code Analysis\n $container->set(PhpFileParser::class, fn () => new PhpFileParser());\n $container->set(PythonFileParser::class, fn () => new PythonFileParser());",
"numLines": 80,
"startLine": 1,
"totalLines": 151
}
}
}