__invoke($container); // Get all ConsoleCommand attributes $commands = $registry->getAttributesByType('App\\Framework\\Attributes\\ConsoleCommand'); echo "Total ConsoleCommand attributes found: " . count($commands) . "\n\n"; // Filter for log-related commands echo "Log-related commands:\n"; echo str_repeat("=", 50) . "\n"; foreach ($commands as $info) { if (stripos($info['class'], 'Log') !== false) { echo "\nClass: " . $info['class'] . "\n"; echo "Method: " . $info['method'] . "\n"; if (isset($info['attribute'])) { $attr = $info['attribute']; if (method_exists($attr, 'name')) { echo "Command Name: " . $attr->name . "\n"; } if (method_exists($attr, 'description')) { echo "Description: " . $attr->description . "\n"; } } echo str_repeat("-", 50) . "\n"; } }