{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "php -r \"\n\\$_SERVER['REQUEST_METHOD'] = 'POST';\n\\$_SERVER['REQUEST_URI'] = '\/docs\/code\/scan';\n\\$_SESSION['_csrf_token'] = 'test123';\n\\$_SERVER['HTTP_X_CSRF_TOKEN'] = 'test123';\n\nchdir('\/var\/www\/dev.campus.systemische-tools.de');\nrequire 'vendor\/autoload.php';\n\\$dotenv = Dotenv\\Dotenv::createImmutable(__DIR__ . '\/..\/..\/var\/www\/dev.campus.systemische-tools.de');\n\\$dotenv->load();\nrequire 'config\/config.php';\nrequire 'config\/database.php';\nrequire 'config\/autoload.php';\n\nuse Framework\\Container;\n\\$container = new Container();\n(require 'src\/services.php')(\\$container);\n\n\\$scanner = \\$container->get(Infrastructure\\CodeAnalysis\\CodeScanner::class);\n\\$result = \\$scanner->scan(null, 'web');\necho json_encode(\\$result);\n\" 2>&1",
"timeout": 120000,
"description": "Test scan directly"
}
}