Files
michaelschiemer/tests/debug/check-command-discovery.php
Michael Schiemer fc3d7e6357 feat(Production): Complete production deployment infrastructure
- Add comprehensive health check system with multiple endpoints
- Add Prometheus metrics endpoint
- Add production logging configurations (5 strategies)
- Add complete deployment documentation suite:
  * QUICKSTART.md - 30-minute deployment guide
  * DEPLOYMENT_CHECKLIST.md - Printable verification checklist
  * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle
  * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference
  * production-logging.md - Logging configuration guide
  * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation
  * README.md - Navigation hub
  * DEPLOYMENT_SUMMARY.md - Executive summary
- Add deployment scripts and automation
- Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment
- Update README with production-ready features

All production infrastructure is now complete and ready for deployment.
2025-10-25 19:18:37 +02:00

45 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
require __DIR__ . '/../../vendor/autoload.php';
use App\Framework\Discovery\DiscoveryRegistryInitializer;
use App\Framework\DI\DefaultContainer;
use App\Framework\Config\Environment;
echo "=== Command Discovery Debug ===\n\n";
$container = new DefaultContainer();
$env = new Environment();
$initializer = new DiscoveryRegistryInitializer($env);
$registry = $initializer->__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";
}
}