fix(Discovery): Add comprehensive debug logging for router initialization
- Add initializer count logging in DiscoveryServiceBootstrapper - Add route structure analysis in RouterSetup - Add request parameter logging in HttpRouter - Update PHP production config for better OPcache handling - Fix various config and error handling improvements
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Framework\View\Processors;
|
||||
|
||||
use App\Framework\Config\AppConfig;
|
||||
use App\Framework\Config\Environment;
|
||||
use App\Framework\DI\Container;
|
||||
use App\Framework\LiveComponents\ComponentRegistry;
|
||||
use App\Framework\LiveComponents\Contracts\LiveComponentContract;
|
||||
@@ -449,8 +450,13 @@ final class PlaceholderReplacer implements StringProcessor
|
||||
|
||||
return $appConfig->isDebug();
|
||||
} catch (\Throwable $e) {
|
||||
// Fallback zu Environment-Variable falls AppConfig nicht verfügbar
|
||||
return ($_ENV['APP_ENV'] ?? 'production') === 'development';
|
||||
// Fallback zu Environment falls AppConfig nicht verfügbar
|
||||
try {
|
||||
$env = $this->container->get(Environment::class);
|
||||
return $env->getString('APP_ENV', 'production') === 'development';
|
||||
} catch (\Throwable) {
|
||||
return false; // Safe fallback: production mode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user