{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "ChatService",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/services.php",
"output_mode": "content",
"-B": 2,
"-C": 10
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "8- * Service Definitions for DI Container.\n9- *\n10- * All repositories and services are registered via ServiceProviders\n11- * to ensure proper separation of concerns by bounded context.\n12- *\n13- * @param Framework\\Container $container\n14- *\/\n15-\n16-use Framework\\Container;\n17-use Infrastructure\\Config\\DatabaseFactory;\n18:use ServiceProvider\\ChatServiceProvider;\n19-use ServiceProvider\\ContentServiceProvider;\n20-use ServiceProvider\\InfrastructureServiceProvider;\n21-use ServiceProvider\\TaskServiceProvider;\n22-\n23-\/\/ NOTE: UseCases are NOT explicitly registered here.\n24-\/\/ They are resolved via Container::autowire() automatically.\n25-\/\/ Only register: Interfaces, Services with special config, Repositories.\n26-\n27-return function (Container $container): void {\n28- \/\/ =========================================================================\n--\n33- $container->set('pdo.dev', fn () => DatabaseFactory::dev());\n34-\n35- \/\/ ki_content database connection\n36- $container->set('pdo.content', fn () => DatabaseFactory::content());\n37-\n38- \/\/ =========================================================================\n39- \/\/ SERVICE PROVIDERS - Modular Registration by Bounded Context\n40- \/\/ =========================================================================\n41-\n42- $providers = [\n43: new ChatServiceProvider(),\n44- new TaskServiceProvider(),\n45- new ContentServiceProvider(),\n46- new InfrastructureServiceProvider(),\n47- ];\n48-\n49- foreach ($providers as $provider) {\n50- $provider->register($container);\n51- }\n52-};",
"numLines": 42
}
}