{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "echo \"=== MUSTER-ANALYSE: Interface-Binding-Fehler ===\" && echo \"\"\n\necho \"1. ALLE Interfaces im Domain-Layer:\"\nfind \/var\/www\/dev.campus.systemische-tools.de\/src\/Domain -name \"*Interface.php\" | wc -l\n\necho \"\"\necho \"2. ALLE Infrastructure-Implementierungen:\"\necho \" Repositories:\"\nls \/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/*Repository.php 2>\/dev\/null | wc -l\n\necho \" Services:\"\nls \/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/AI\/*.php 2>\/dev\/null | wc -l\nls \/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Docs\/*Service.php 2>\/dev\/null | wc -l\n\necho \"\"\necho \"3. FEHLENDE Interface-Implementierungen (potenzielle Fehlerquellen):\"\nfor iface in $(find \/var\/www\/dev.campus.systemische-tools.de\/src\/Domain -name \"*Interface.php\" -exec basename {} .php \\;); do\n impl_name=${iface%Interface}\n # Check if impl exists and implements interface\n impl_file=$(find \/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure -name \"${impl_name}.php\" 2>\/dev\/null | head -1)\n if [ -n \"$impl_file\" ]; then\n if ! grep -q \"implements.*${iface}\" \"$impl_file\" 2>\/dev\/null; then\n echo \" ⚠️ $impl_name.php existiert aber implementiert $iface nicht!\"\n fi\n fi\ndone\n\necho \"\"\necho \"4. ServiceProvider Bindings (Interface → Implementation):\"\ngrep -h \"set.*Interface\" \/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/*.php 2>\/dev\/null | wc -l\n",
"description": "Analyze interface binding patterns"
}
}