{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "MARIADB_ROOT_PASSWORD=\"v8mFLmkF2fth_r\" php -r '\nrequire \"vendor\/autoload.php\";\n\nspl_autoload_register(function ($class) {\n $baseDir = __DIR__ . \"\/src\/\";\n $file = $baseDir . str_replace(\"\\\\\", \"\/\", $class) . \".php\";\n if (file_exists($file)) {\n require $file;\n }\n});\n\nuse Framework\\Container;\nuse Infrastructure\\AI\\ChatService;\nuse Infrastructure\\AI\\SemanticEnrichmentService;\n\n$container = new Container();\n$services = require \"src\/services.php\";\n$services($container);\n\n\/\/ Get ChatService \n$chatService = $container->get(ChatService::class);\n\n\/\/ Check if SemanticEnrichmentService is injected\n$reflection = new ReflectionClass($chatService);\n$props = $reflection->getProperties();\n\nforeach ($props as $prop) {\n $prop->setAccessible(true);\n $value = $prop->getValue($chatService);\n $name = $prop->getName();\n \n if ($value instanceof SemanticEnrichmentService) {\n echo \"✅ SemanticEnrichmentService is injected!\\n\";\n }\n \n echo \" - $name: \" . (is_object($value) ? get_class($value) : gettype($value)) . \"\\n\";\n}\n' 2>&1",
"description": "Test ChatService has SemanticEnrichmentService"
}
}