{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Container\/ServiceLocator.php",
"limit": 25
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Container\/ServiceLocator.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Infrastructure\\Container;\n\n\/\/ @responsibility: Service Locator für Dependency Management\n * ServiceLocator::register(TaskRepositoryInterface::class, new TaskRepository());\n *\n * \/\/ Retrieve a service\n * $repo = ServiceLocator::get(TaskRepositoryInterface::class);\n *\n * @package Infrastructure\\Container\n *\/\nfinal class ServiceLocator\n{\n \/** @var array<class-string, object> *\/\n private static array $services = [];\n\n \/**\n * Register a service implementation for an interface.\n *\n * @param class-string $interface The interface or class name\n * @param object $implementation The concrete implementation\n *\/",
"numLines": 25,
"startLine": 1,
"totalLines": 87
}
}
}