{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/TaskServiceProvider.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\n\/\/ @responsibility: Register Task bounded context services in DI container\n\nnamespace ServiceProvider;\n\nuse Domain\\Repository\\TaskAssignmentRepositoryInterface;\nuse Domain\\Repository\\TaskCommentRepositoryInterface;\nuse Domain\\Repository\\TaskRepositoryInterface;\nuse Domain\\Repository\\TaskResultRepositoryInterface;\nuse Framework\\Container;\nuse Infrastructure\\Persistence\\TaskAssignmentRepository;\nuse Infrastructure\\Persistence\\TaskCommentRepository;\nuse Infrastructure\\Persistence\\TaskRepository;\nuse Infrastructure\\Persistence\\TaskResultRepository;\n\n\/**\n * TaskServiceProvider registers all task management services.\n *\/\nfinal class TaskServiceProvider implements ServiceProviderInterface\n{\n public function register(Container $container): void\n {\n \/\/ Repositories\n $container->set(TaskRepository::class, fn (Container $c) => new TaskRepository($c->get('pdo.dev')));\n $container->set(TaskAssignmentRepository::class, fn (Container $c) => new TaskAssignmentRepository($c->get('pdo.dev')));\n $container->set(TaskResultRepository::class, fn (Container $c) => new TaskResultRepository($c->get('pdo.dev')));\n $container->set(TaskCommentRepository::class, fn (Container $c) => new TaskCommentRepository($c->get('pdo.dev')));\n\n \/\/ Interface aliases\n $container->set(TaskRepositoryInterface::class, fn (Container $c) => $c->get(TaskRepository::class));\n $container->set(TaskResultRepositoryInterface::class, fn (Container $c) => $c->get(TaskResultRepository::class));\n $container->set(TaskAssignmentRepositoryInterface::class, fn (Container $c) => $c->get(TaskAssignmentRepository::class));\n $container->set(TaskCommentRepositoryInterface::class, fn (Container $c) => $c->get(TaskCommentRepository::class));\n }\n}\n"
}
}
{
"tool_response": {
"type": "create",
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/TaskServiceProvider.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\n\/\/ @responsibility: Register Task bounded context services in DI container\n\nnamespace ServiceProvider;\n\nuse Domain\\Repository\\TaskAssignmentRepositoryInterface;\nuse Domain\\Repository\\TaskCommentRepositoryInterface;\nuse Domain\\Repository\\TaskRepositoryInterface;\nuse Domain\\Repository\\TaskResultRepositoryInterface;\nuse Framework\\Container;\nuse Infrastructure\\Persistence\\TaskAssignmentRepository;\nuse Infrastructure\\Persistence\\TaskCommentRepository;\nuse Infrastructure\\Persistence\\TaskRepository;\nuse Infrastructure\\Persistence\\TaskResultRepository;\n\n\/**\n * TaskServiceProvider registers all task management services.\n *\/\nfinal class TaskServiceProvider implements ServiceProviderInterface\n{\n public function register(Container $container): void\n {\n \/\/ Repositories\n $container->set(TaskRepository::class, fn (Container $c) => new TaskRepository($c->get('pdo.dev')));\n $container->set(TaskAssignmentRepository::class, fn (Container $c) => new TaskAssignmentRepository($c->get('pdo.dev')));\n $container->set(TaskResultRepository::class, fn (Container $c) => new TaskResultRepository($c->get('pdo.dev')));\n $container->set(TaskCommentRepository::class, fn (Container $c) => new TaskCommentRepository($c->get('pdo.dev')));\n\n \/\/ Interface aliases\n $container->set(TaskRepositoryInterface::class, fn (Container $c) => $c->get(TaskRepository::class));\n $container->set(TaskResultRepositoryInterface::class, fn (Container $c) => $c->get(TaskResultRepository::class));\n $container->set(TaskAssignmentRepositoryInterface::class, fn (Container $c) => $c->get(TaskAssignmentRepository::class));\n $container->set(TaskCommentRepositoryInterface::class, fn (Container $c) => $c->get(TaskCommentRepository::class));\n }\n}\n",
"structuredPatch": [],
"originalFile": null
}
}